L lisa_lqq Unregistered / Unconfirmed GUEST, unregistred user! 2001-02-28 #1 如何通过点击一个按钮将dbgrid中的记录全部选中??
T terry_lzs Unregistered / Unconfirmed GUEST, unregistred user! 2001-02-28 #2 procedure TForm1.DBGrid1DblClick(Sender: TObject); var i:integer; begin table1.First; for i:=0 to table1.RecordCount-1 do begin dbgrid1.SelectedRows.CurrentRowSelected:=true; table1.Next; end; end;
procedure TForm1.DBGrid1DblClick(Sender: TObject); var i:integer; begin table1.First; for i:=0 to table1.RecordCount-1 do begin dbgrid1.SelectedRows.CurrentRowSelected:=true; table1.Next; end; end;