<< Return to Main Index

< Return to Class Index

CGXBrowserGrid::OnFlushBlobValue

virtual void OnFlushBlobValue(ROWCOL nRow, ROWCOL nCol, CGXAbstractBlob* pAttribute);

nRow

The row being flushed

nCol

The column being flushed

pAttribute

The blob attribute (Explained below)

Remarks

With normal fields the grid internal current row cache is represented as a string With blobs this is not possible. We therefore have a user attribute pointer that can be used to store any meaningful data. This data is then sent to OnFlushBlobValue.

If your browser variant supports storing blob data you will have to override this method and store the data in the data source. If this method is called for a particular row, col to store an object then OnFlushCellValue will not be called.

If you cannot write the passed value to the data source, you may throw an exception and specify the text to be displayed in the grid with SetWarningText (see the attached example). The default implementation does not do anything.

When overriding this method, it is strongly recommended that you dereference the record and field index associated with a row or column by calling the GetRecordFromRow or GetFieldFromCol methods.

OnFlushBlobValue is not called when the user changes the current cell in the current record (unlike StoreStyleRowCol). It is called when the user wants to move to a new record and therefore validation in OnFlushBlobValue happens only at record level.

See Also

CGXBrowserGrid::OnFlushCellValue CGXBrowserGrid::OnFlushRecord

CGXBrowserGrid

Class Overview | Class Members