procedure TGrid.GetValue(Sender: TObject; const Col, Row: Integer;
var Value: Variant);
procedure TGrid.SetValue(Sender: TObject; const Col, Row: Integer;
const Value: Variant);
OnGetValue is used to read in for a column and row the value
OnSetValue is used for updating your object with the value from the grid.
The other useful call is that to TGrid.Realign - You can call this once you have managed the objects externally to ensure the grid redraws. This allows multiple changes to run before you update the grid to ensure that the process runs as quickly as possible without the grid constantly trying to update changes.
I also love the ability to embed controls into the grid which is a lot easier than the OwnerDraw work we had to do before. This coupled with the different grid columns really does make for quite a useful grid indeed.
Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder. Design. Code. Compile. Deploy.
Start Free Trial
Free Delphi Community Edition
Free C++Builder Community Edition