I want to know How can I know if the filter's textbox is empty or not?
I thought I could use "IsFilteredOut" but it's not the property I was looking for.
Thank you!
Hello dori greeny,
You can use the FilterConditions property and check if it has a Count of 0. If there are no FilterConditions, then the filter's textbox is empty.
For example:
if (this.UltraGrid1.DisplayLayout.Bands[0].ColumnFilters[0].FilterConditions.Count == 0) { // your logic here }
You can change the Band and the ColumnFilters by adjusting the indices in the code above.
Elizabeth AlbertLocalization Engineer
Thank you for your answer.
I tried what you wrote, but it doesn't work either: my problem occurs after I delete all the text from the filter. I use FilterCellValueChanged event and in it's method I want to check if there any column with filter. When I try to check the condition: FilterConditions.Count == 0 on all my ColumnFilters, one of the columns get false (the last column I deleted it's filter, and it still has the condition).
Do I do something wrong?