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.

Events everywhere!

Thread ID:

Created:

Updated:

Platform:

Replies:

8713 Nov 17,2003 04:04 PM Nov 17,2003 04:26 PM Windows Forms 2
loading
Tags: GridControl
Jim Frapper
Asked On November 17, 2003 04:04 PM

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 04:05 PM

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 04:26 PM

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.

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.

;