JackQu的程序员博客

欢迎来的我Blog.这里记录工作学习的点滴,愿与大家分享。欢迎大家共同交流 。

导航

单击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;

 

posted on 2011-09-17 14:04  Qcj  阅读(310)  评论(0编辑  收藏  举报