Object Reference > True DBGrid Properties > Value Property (RowBuffer) |
This property returns or sets the data value for the specified cell within a RowBuffer object passed to an unbound event procedure for a TDBGrid control.
rowbuffer.Value (Row, Col)= variant
Read/Write at run time. Not available at design time.
The Row argument is a long integer specifying the row where the value is placed. The range of this argument can be from 0 to RowCount - 1.
The Col argument is an integer specifying the column where the value is placed. The range of this argument can be from 0 to ColumnCount - 1.
In the UnboundReadData event, your code must provide data values for the rows being fetched. In the UnboundAddData and UnboundWriteData events, the user's changes are passed to your event procedures via a RowBuffer object.