CGXAdoGrid Class Members

Construction

 CGXAdoGrid Constructs an ADO grid object.

Attributes

 GetAdoParam Returns a pointer to the associated CGXAdoParam object.
 SetRecordset Lets you attach the ADORecordset object to be displayed in the grid.

Overridables

 CreateRecordset This is a utility function that helps you create a recordset pointer given the source and SQL. It creates the recordset with an adOpenKeyset-type cursor.
 ConvertValueToString Called to retrieve a string with the value for the ADOField 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.
 OpenRecordset Opens the recordset (only if not yet opened), initializes the columns (width, field name, length, base style) and redraws the grid.
 OnGetRecordset Returns a pointer to the attached ADORecordset 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, determines the column title and width.
 PreUpdateRecordset This overridable is called from OnFlushRecord after all changed values have been flushed to the ADORecordset and just before the ADORecordset::Update method is called. You may override it if you want to do any changes in the current record of the ADORecordset before it is updated to the database.

CGXAdoGrid

 Class Overview