InfoLight-EEP(delphi)DBGrid選點Column-Title進行排序(EEP內建方法 uses AFM2BaseFMUtils ->ChangeIndex)
1: procedure TfmInCome.grdHbInComeTitleClick(Column: TColumn);
2: begin
3: try
4: //cdsHbInCome為ClientDataSet
5: ChangeIndex(cdsHbInCome,Column.FieldName,false);
6: cdsHbInCome.First;
7: except
8:
9: end;
10: end;