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

Events everywhere!

Thread ID:

Created:

Updated:

Platform:

Replies:

8713 Nov 17,2003 09:04 PM UTC Nov 17,2003 09:26 PM UTC WinForms 2
loading
Tags: GridControl
Jim Frapper
Asked On November 17, 2003 09:04 PM UTC

Hey Clay, I have a data bound grid with the filterbar attached. On this screen I have buttons which open up other windows in an MDI app. When the user comes back to the screen with the data bound grid I refresh the data from the forms activated event. When I select the (custom) option out of any of the filterbar columns the following occurs... If I get out of this screen by selecting Ok or Cancel the window pops up again and again (i.e. one to many times). It seems by repopulating the grid it is firing the "open custom filter screen" again. Let me know if you would like sample code or more info. Cheers, JF

Jim Frapper
Replied On November 17, 2003 09:05 PM UTC

I would also be satisfied if I could just remove the (custom) option from the filterbar. Cheers, JF

Administrator [Syncfusion]
Replied On November 17, 2003 09:26 PM UTC

You can remove the (custom) from the drop lists with this code.
for(int col = 0; col < this.gridDataBoundGrid1.Model.ColCount; col++)
{
	DataTable dt = this.gridDataBoundGrid1[1,col].DataSource as DataTable;
	if(dt != null)
	{
		dt.Rows.RemoveAt(1);
	}
}

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

;