Home > Back-end >  CxGrid filter can't same column filtering with multiple values
CxGrid filter can't same column filtering with multiple values

Time:09-15

The default filter only one value, such as the value of a column with zhang SAN, li si, Cathy, I want to filter and choose zhang SAN and li si, so that I can do it.

CodePudding user response:

With a DataSet directly. The Filter can be

The DataSet. The Filter:=Format (' (or name=% s name or the name==% s % s) ', [QuotedStr (' zhang '), QuotedStr (' bill '), QuotedStr (' Cathy ')]);
The DataSet. Filtered:=True;

CodePudding user response:

That can't enter Tom, dick and harry yourself that efficiency is too low

CodePudding user response:

refer to the second floor abinnet response:
that cannot enter Tom, dick and harry yourself that efficiency is too low



DBGrid line can be alternative ah, don't cxGrid can?

CodePudding user response:

Data set filter, usually using SQL statement execution, filtering effect is better, in the DBGrid...

CodePudding user response:

Such as a column have 3 zhang, 4 li si, fifty five, in the title bar to filter the default can only choose one, choose zhang SAN, for example, it shows three lines.
Best can also check the zhang SAN and li si, this shows seven rows

CodePudding user response:

Can you use a three chechbox, respectively, on behalf of the three options

If chechbox1. Checked then
The begin
The DataSet. Filtered:=False;
The DataSet. The Filter:='name=' ' 'zhang SAN "';
The DataSet. Filtered:=True;
The end;
If chechbox2. Checked then
The begin
The DataSet. Filtered:=False;
The DataSet. The Filter:='name=' ' ' ' ' ', dick, and harry;
The DataSet. Filtered:=True;
The end;
If chechbox3. Checked then
The begin
The DataSet. Filtered:=False;
The DataSet. The Filter:='name=' ' 'the king 2 "';
The DataSet. Filtered:=True;
The end;

The code on the checkbox onchange events

CodePudding user response:

The DataSet. The Filter:='name=' 'two' ' '; Should be in this way,

CodePudding user response:

The DataSet associated cxGrid

CodePudding user response:

Cxgrid view, header with screening, like Excel, simple operation,

CodePudding user response:

Cxgrid have the function of ah

CodePudding user response:

The
references to the tenth floor RayYan response:
cxgrid has the function of ah


Where is the setting, I filter did not check the item here

CodePudding user response:

Recently my butt off on this function, or not

CodePudding user response:

The
references to the tenth floor RayYan response:
cxgrid has the function of ah


This control is what version, you checked the like the back of the versions have this function
  • Related