CGXDaoGrid Class Members
Construction
CGXDaoGrid | Constructs a DAO grid object. |
Attributes
GetDaoParam | Returns a pointer to the associated CGXDaoParam object. |
SetRecordset | Lets you attach the CDaoRecordset object to be displayed in the grid. |
Operations
CheckForBinary | Checks if the cell is binary |
IsPreviewField | Checks if the field supports data being loaded on demand |
GetOleViewerRowCol | Gets the OLE viewer. |
GetPreviewString | Gets the preview string |
GetOleViewerRowCol | Gets the OLE viewer. |
GetOleViewerRowCol | Gets the OLE viewer. |
Overridables
ConvertValueToString | Called to retrieve a string with the value for the CDaoField bound to the specified column. The string will be displayed in the grid. |
GetDisplaySize | This method is called from OnInitColInfo to determine the default column width in characters for the specified field type. You may override this method if you want to change the initial widths for specific data types. |
OnGetBitmapHandleRowCol | This method is to be used in conjunction with OnUseBitmapHandleRowCol. |
OnGetRecordset | Returns a pointer to the attached CDaoRecordset object. |
OnInitColInfo | Called from OpenRecordset to determine the default settings for columns based on their data types. The method associates the columns with a base style and determines the column title and width. |
OnUseBitmapHandleRowCol | This method is used in conjunction with OnGetBitmapHandleRowCol. |
OpenRecordset | Opens the recordset (only if not yet opened), initializes the columns (width, field name, length, base style) and redraws the grid. |
PreUpdateRecordset | This overridable is called from OnFlushRecord after all changed values have been flushed to the CDaoRecordset and just before the CDaoRecordset::Update method is called. You may override it if you want to do any changes in the current record of the CDaoRecordset before it is updated to the database. |
Foreign Tables
AttachForeignTable | Lets you attach a table with a foreign key to a column. For example, you could attach a foreign table to the column and display descriptive text for a key (e.g., student name instead of student id) |