单击DBGrid列头自动排序
procedure DBGridItemsTtileClick(Column: TColumnEh); begin if DBGridItems.Focused then with cdsBillItems do if Active and not(Bof and Eof) then if FindField(Column.FieldName)<>nil then IndexFieldNames:=Column.FieldName; end;
欢迎来的我Blog.这里记录工作学习的点滴,愿与大家分享。欢迎大家共同交流 。
procedure DBGridItemsTtileClick(Column: TColumnEh); begin if DBGridItems.Focused then with cdsBillItems do if Active and not(Bof and Eof) then if FindField(Column.FieldName)<>nil then IndexFieldNames:=Column.FieldName; end;