Advertisement
Gov_777

Сортировка по колонке DBGreed

May 20th, 2016
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.20 KB | None | 0 0
  1. procedure TForm1.DBGrid1TitleClick(Column: TColumn);
  2. begin
  3. ADOQuery1.Sort:=Column.Field.FieldName+' DESC'; //ASC | DESC по убыванию
  4. //ADOQuery1.Sort := '['+ Column.FieldName + '] DESC';
  5. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement