Posted 14 November 2018, 6:15 pm EST
Hi,
I have a database integer field.
I use TrueDBGrid.
The Colum is defined like this:
col = new C1.Win.C1TrueDBGrid.C1DataColumn();
col.Caption = “Device”;
col.DataField = “DeviceType”;
mGrid.Columns.Add(col);
mGrid.Splits[0].DisplayColumns[col.Caption].Visible = true;
mGrid.Splits[0].DisplayColumns[col.Caption].Locked = true;
col.ValueItems.Translate = true;
col.ValueItems.MaxComboItems = 2;
col.ValueItems.CycleOnClick = true;
col.ValueItems.Presentation = C1.Win.C1TrueDBGrid.PresentationEnum.ComboBox;
col.ValueItems.Values.Add(new C1.Win.C1TrueDBGrid.ValueItem(“0”, “Device1”);
col.ValueItems.Values.Add(new C1.Win.C1TrueDBGrid.ValueItem(“1”, “Device2”);
Now I want for filter this column with the filterbar.
It does nor ork.
To you have an example, what I have do define for this colums.
I also have a normal text column.
for Example with the text “0001,0002,0003”
I want filter this row if I enter 0002.
How can I do this?
Thanks Horst