Clear Filter in DataBoundGrid

How do i programatically remove user selected filter from DataBoundgrid.

I have used Filterbar to allow users to select rows.

regards

1 Reply

AD Administrator Syncfusion Team September 28, 2006 05:23 AM UTC

Hi,

To restore the grid without any filter, you need to set the RowFilter property to null or string.Empty. Below is a code snippet

DataView dv = (this.grid.DataSource as DataTable).DefaultView;

dv.RowFilter = null;

//Or

filterBar.RowFilter = null;

Thanks,
Haneef

Loader.
Up arrow icon