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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

refreshing data after applying filter

Thread ID:

Created:

Updated:

Platform:

Replies:

10568 Feb 5,2004 05:44 PM UTC Feb 5,2004 09:42 PM UTC WinForms 4
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 5, 2004 05:44 PM UTC

Hi, I would like to apply a filter to a gridhierdatabound grid and all of its child grids based on a menu selection. Is there any example somewhere on how to do this? I don''t want to lose any of the changes the user may have made to the grid before applying the filter Thanks again!

Administrator [Syncfusion]
Replied On February 5, 2004 05:56 PM UTC

You set the parentDataTable.DefaultView.RowFilter property to the row filter you want to apply..

Administrator [Syncfusion]
Replied On February 5, 2004 07:53 PM UTC

THanks, that worked great. I noticed that when I try to apply the filter when I am still on a record that was just edited, I sometimes get an error '' no row at position one''. Is there some way to commit changes to all records before applying the filter? >You set the parentDataTable.DefaultView.RowFilter property to the row filter you want to apply..

Administrator [Syncfusion]
Replied On February 5, 2004 09:05 PM UTC

Try calling grid.CurrentCell.EndEdit() and grid.Binder.EndEdit() before setting the filter.

Administrator [Syncfusion]
Replied On February 5, 2004 09:42 PM UTC

THanks >Try calling grid.CurrentCell.EndEdit() and grid.Binder.EndEdit() before setting the filter.

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.

Warning Icon 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.Close Icon

;