Home › Forums › Konopka Signature VCL Controls (formerly Raize Components) › TRzDBGrid.QuickCompare › Reply To: TRzDBGrid.QuickCompare
September 7, 2021 at 10:26 pm
#2613
Hi Peter,
Sorry for the delay. You can get the value of other fields in the record by using the Column parameter. For example,
var
GamesField: TField;
begin
GamesField := Column.Field.DataSet.FieldByName( 'G' );
if GamesField.Value > 50 then
. . .
In this example, I have a grid displaying baseball statistics. Field G represents the number of games. I can use the Column parameter to get the field object of any other field I’m interested in. I do this to get the GamesField object, from which I can get the value and alter the appearance of the fields in that record appropriately.
Ray