Reply To: TRzDBGrid.QuickCompare

#2613
Ray Konopka
Keymaster

    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