水 水晶城 Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-15 #1 我怎么才能知道用户一次选定了多少行记录??? 已经设dgmultiselect为true。
H hhmsky Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-15 #2 用DBGrid1.SelectedRows.Count可返回选定了多少行记录。 if DBGrid1.SelectedRows.Count>0 then with DBGrid1.DataSource.DataSet do for i:=0 to DBGrid1.SelectedRows.Count-1 do begin GotoBookmark(pointer(DBGrid1.SelectedRows.Items)); end; 可遍历选定了多少行记录
用DBGrid1.SelectedRows.Count可返回选定了多少行记录。 if DBGrid1.SelectedRows.Count>0 then with DBGrid1.DataSource.DataSet do for i:=0 to DBGrid1.SelectedRows.Count-1 do begin GotoBookmark(pointer(DBGrid1.SelectedRows.Items)); end; 可遍历选定了多少行记录