Hello
I use GridDataControl (ShowFilters = "True" and AllowFilter = "True" for all VisibleColumns).
I'd like to check an option in Filter dropdown for one of the columns in code behind. Is there a way to do this? The reason is that I want to have my GridDataControl initially filtered.
I tried this line of code:
this.myGrid.VisibleColumns[0].Filters.Add(new FilterPredicate() { FilterType = FilterType.Equals, FilterValue = "ValueA" });
It filters the grid, but unfortunately it also clears all other options from the filter dropdown and a user cannot use it.
Is there a way to filter the data properly from code behind?
Best regards,