爱
爱上猫的鱼
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.DBGridEh1TitleClick(Column: TColumnEh);
begin
if Column.Field.FieldKind = fkLookup then
exit;
if Column.Field.FieldKind = fkCalculated then
exit;
if Column.Title.SortMarker=smDownEh then
begin
Column.Title.SortMarker:=smupEh;
ADOQuery1.Sort:=Column.FieldName +' DESC ';
end
else
begin
Column.Title.SortMarker:=smDownEh;
ADOQuery1.Sort:=Column.FieldName ;
end;
end;
各位大侠帮忙解释一下下面几句话的意思
Column.Field.FieldKind = fkLookup;
Column.Field.FieldKind = fkCalculated;
Column.Title.SortMarker=smDownEh;
Column.Title.SortMarker:=smupEh;
ADOQuery1.Sort:=Column.FieldName +' DESC ';
Column.Title.SortMarker:=smDownEh;
ADOQuery1.Sort:=Column.FieldName ;
请麻烦在具体解释一下,ADOQuery.Sort 和Column.Field.FieldKind的意思
begin
if Column.Field.FieldKind = fkLookup then
exit;
if Column.Field.FieldKind = fkCalculated then
exit;
if Column.Title.SortMarker=smDownEh then
begin
Column.Title.SortMarker:=smupEh;
ADOQuery1.Sort:=Column.FieldName +' DESC ';
end
else
begin
Column.Title.SortMarker:=smDownEh;
ADOQuery1.Sort:=Column.FieldName ;
end;
end;
各位大侠帮忙解释一下下面几句话的意思
Column.Field.FieldKind = fkLookup;
Column.Field.FieldKind = fkCalculated;
Column.Title.SortMarker=smDownEh;
Column.Title.SortMarker:=smupEh;
ADOQuery1.Sort:=Column.FieldName +' DESC ';
Column.Title.SortMarker:=smDownEh;
ADOQuery1.Sort:=Column.FieldName ;
请麻烦在具体解释一下,ADOQuery.Sort 和Column.Field.FieldKind的意思