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;