Order and save right now!
20% off with the 729824315 dicscount code for Ultimate Pack and any another product for Delphi from Greatis Programming! |
⤷ Sort columns in DBGrid
Use the FieldName property of the DBGrid to set an index with the same name as the FieldName.
procedure TForm1.DBGrid1TitleClick(Column: TColumn);
begin
(Column.Field.DataSet as TTable).IndexFieldNames:=Column.FieldName;
end;
-
More for developers