Objective Grid: Intercepting data to and from a database

Article ID: 148
Last updated: 04 Jun, 2018
Article ID: 148
Last updated: 04 Jun, 2018
Revision: 3
Views: 1562
Posted: 11 Jan, 2001
by Meltreger B.
Updated: 04 Jun, 2018
by Meltreger B.

Problem


How do I intercept the flow of data from Objective Grid to a database and vice-a-versa?


Cause



Action


You have the option to override one of the following methods:

  1. ConvertValueToString() - Called from OnLoadCellStyle() to retrieve a string with the value for the CDaoField bound to the specified column. The string will be displayed in the grid.
  2. OnLoadCellStyle() - You might override OnLoadCellStyle() if you want to specify the appearance of cells, like color, font etc. This is most usefull if these settings depend on the current value as for example red for negative value.
  3. OnFlushCell() - Called to store the changed value into the recordset.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 148
Last updated: 04 Jun, 2018
Revision: 3
Views: 1562
Posted: 11 Jan, 2001 by Meltreger B.
Updated: 04 Jun, 2018 by Meltreger B.

Others in this category