This question is locked. New answers and comments are not allowed.
Hi, I am currently trying to programatically remove user applied filters from the radgridview. For example if the user does something that loads new data in the grid, we want to clear any filters they applied to the last data set. I found I can clear the filter to get a proper row number for new data by calling FilterDescriptors.Clear() but the column header visually does not update iself. The header for any previously filtered column still shows the funnel as half white half black instead of entirely black.
Once the user clicks on a column header, the filter graphic returns to all black but is there any way to do this programatically? This is the code I am currently using which properly clears the filter:
Once the user clicks on a column header, the filter graphic returns to all black but is there any way to do this programatically? This is the code I am currently using which properly clears the filter:
grid.FilterDescriptors.Clear();
I also tried to reference the columns individually as ColumnFilterDescriptors but this did not work either:
while (grid.FilterDescriptors.Count > 0)
{
ColumnFilterDescriptor desc = (ColumnFilterDescriptor)grid.FilterDescriptors[0];
desc.FilterDescriptors.Clear();
grid.FilterDescriptors.Remove(desc);
}
Any help is refreshing the column headers would be appreciated. Thanks.