Home > Back-end >  Delphi, cxgrid how the selected cells are assigned to the first line of the selected value, and the
Delphi, cxgrid how the selected cells are assigned to the first line of the selected value, and the

Time:10-12

Delphi, cxgrid how the selected cells are assigned to the first line of the selected value, and the data collection and synchronous update

CodePudding user response:

I remember a Select the codebehind (categories.aspx.cs),
The traversal,

CodePudding user response:

May also be a Controller,
Ha ha, I'm sorry, remember is not very clear,
Look for it,

CodePudding user response:

 procedure TForm15. Btn1Click (Sender: TObject); 
Var
I: integer;
The begin
//CXGRDBNDTBLVW TableView name
If CXGRDBNDTBLVW. Controller. SelectedRowCount & lt; 2 then
exit;

For I:=1 to CXGRDBNDTBLVW. Controller. Do SelectedRowCount - 1
The begin
CXGRDBNDTBLVW. Controller. SelectedRows [I] Values [0] :=
CXGRDBNDTBLVW. Controller. SelectedRows [0]. Values [0];
end;
end;