<< Return to Main Index

< Return to Class Index

CGXBrowserGrid::CanUpdate

virtual BOOL CanUpdate();

Return Value

Non-zero if user can change data source; otherwise 0.

Remarks

Called to determine if the user should be able to change data in the data source. You may override this method and return the CanUpdate state of your external data source (see example):

Example

This example shows the DAO implementation of this method:

BOOL CGXDaoGrid::CanUpdate()
{
   return m_pRecordset
      && m_pRecordset->IsOpen()
      && m_pRecordset->CanUpdate();
}

CGXBrowserGrid

Class Overview | Class Members