|| | |||Browse by category|
I want to be able to attach a recordset to a bound grid after calling OnInitialUpdate() and start with an empty grid? Is this possible?
Yes. Simply don't call SetRecordset(pRecordset) before calling OnInitialUpdate(). If the grid has no pointer to a recordset, it will not try to open the set.
Later, when you want to attach a recordset, you should call SetRecordset() and OpenRecordset().
|m_pSet = new CRecordset;