We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon