Home > Back-end >  Cxgrid binding data grouping or screening after the cell values, as well as the sort of problem is p
Cxgrid binding data grouping or screening after the cell values, as well as the sort of problem is p

Time:11-05

1, after cxgrid binding sqlite database, before sorting or filtering values corresponding cell, such as column 4, line 1 can use Cxgrid1dbtableview1. Datacontroller. Values [0, 3] get "rui-heng wang" seemingly earned a cxgrid the data in the table, is actually the data in the database, because before sorting or filtering, cxgrid and database are corresponding,

But after sorting or filtering, column 4 values, the value 1 with Cxgrid1dbtableview1. Datacontroller. Values [0, 3] the resulting value is still "rui-heng wang," rather than "single sweet nan", if made after the sorting or filtering such as "single sweet nan" this value in a table, have a correct way?


2, before about related topics in the BBS, but there seems to be no solution, the post is a little long, now encountered this problem again ask,
Problem is: after the grouping, cxgrid automatically to the group on the basis of the field of sorting, how to disable automatic sorting, option to set the options related to sorting to false don't work, after

Sortorder cannot choose sonone, the remaining two ascending and descending can choose, can also play a role,

CodePudding user response:

Cxgrid1dbtableview1. The codebehind (categories.aspx.cs). Rows [0]. Values [3].

CodePudding user response:

reference 1st floor wdonghai response:
Cxgrid1dbtableview1. The codebehind (categories.aspx.cs). The Rows [0]. Values [3].

This is the right way, the values are grouped on the value of the data is not the value

CodePudding user response:

 
Procedure TForm1. Button1Click (Sender: TObject);
Var
IRow, I, k, iRealRow: integer;
The begin
//Edit1. Text:='0';
IRow:=StrToInt (Edit1. Text);//to the number of rows in the value of
K:=1;
IRealRow:=1;
For I:=0 to cxGrid1DBTableView1. The codebehind (categories.aspx.cs). Do the RowCount - 1
If not cxGrid1DBTableView1. The codebehind (categories.aspx.cs). Rows [I] Expandable then
The begin
Inc (k);
If k>=iRow then
The begin
IRealRow:=I;
Break;
end;
end;

If iRealRow<> 1 then
ShowMessage (Cxgrid1dbtableview1. The codebehind (categories.aspx.cs). Rows [iRealRow] values [3]).
end;

CodePudding user response:

to the first question will be effected according to the above methods to solve the

CodePudding user response:

The second question how to solve?
  • Related