cxgrid 多选

OptionsBehavior.PullFocusing =True。

 

执行多选。

with cxGrid1DBTableView1 do
begin
for i := 0 to Controller.SelectedROwCount - 1 do
begin
Controller.FocusedRow := Controller.SelectedRows[i]; //这个是选择哪行。
GFDmem.Append();
GFDmem.CopyRecord(fdmtProducts); // 复制当前行
end;
end;

posted @ 2022-04-21 16:13  Thenext  阅读(256)  评论(0)    收藏  举报