CGXBrowserGrid::Update

virtual BOOL Update(CString* ps = NULL);
throw( CException );

ps

Specifies a pointer to a CString where the method should store a warning text if the operation did fail or throw an exception. If ps is NULL, Update will not catch any exception.

Return Value

Nonzero if successful; otherwise 0.

Remarks

Completes an AddNew or Edit operation and saves the changed values to the data source by calling OnFlushRecord. If a new record has been added, an OnAddedNewRecord event will be fired.

Update will redraw the whole row.

This action can raise exceptions. Sometimes it is necessary that the method catches the exception, sometimes it is necessary that the exception fall through. This behavior is determined through the ps parameter.

The ps parameter will be passed to OnFlushRecord. If ps is NULL, OnFlushRecord will let exceptions fall through. If ps is a pointer to a CString, exceptions will be caught and ps will be initialized with the text describing the exception.

See Also

 CGXBrowserGrid::OnFlushRecord  CGXBrowserGrid::AddNew   CGXBrowserGrid::Edit  CGXBrowserGrid::OnAddedNewRecord

CGXBrowserGrid

 Class Overview |  Class Members