[SOLVED] Column Filter - reset filter

Answered
0
0

Hi,

I am using Column Filter on the grid, there are many columns that can be filtered. is there a way to reset / remove current filter values for all columns in the gridview at once?

thanx,

D

  • You must to post comments
Best Answer
0
0

Hi Dino,

we have added a Clear() method to the ColumnFilterPanels.
Once you have pulled the latest version from Github you can clear all Filters with some code like this:

foreach (DataGridViewColumn col in this.dataGridView1.Columns)
{
   var columnFilterPanel = col.UserData?.FilterPanel as ColumnFilterPanel;
   if (columnFilterPanel != null)
   {
      columnFilterPanel.Clear();
   }
}

Best regards
Frank

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.