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.
Unfortunately, activation email could not send to your email. Please try again.

Clear Filter in DataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

49818 Sep 27,2006 12:34 PM Sep 28,2006 01:23 AM Windows Forms 1
loading
Tags: GridControl
Raj
Asked On September 27, 2006 12:34 PM

How do i programatically remove user selected filter from DataBoundgrid.

I have used Filterbar to allow users to select rows.

regards

Administrator [Syncfusion]
Replied On September 28, 2006 01:23 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;