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


Thread ID:





12956 Apr 16,2004 06:09 AM UTC Apr 20,2004 05:02 PM UTC WinForms 6
Tags: GridControl
Administrator [Syncfusion]
Asked On April 16, 2004 06:09 AM UTC

Hi Clay, I''m implementing the code from the GDBGWithDropGrids. I''m using the code from DDGridCell.cs and setup the grid like in the sample. Without the FilterBar it works fine, after enabling it, the DropDownGrid will not be shown. This is the setup for the column in the constructor: DropDownGridCellModel cellModel = new DropDownGridCellModel(this.grdSelection.Model); //DDGridCellModel cellModel = new DDGridCellModel(this.Model); cellModel.EmbeddedGrid = this.grdSelectionDetails; //make the orderGrid the dropgrid this.grdSelection.Model.CellModels.Add("DBDropDownGridCell", cellModel); this.gbcDetails.StyleInfo.CellType = "DBDropDownGridCell"; What I have to change to get it working? Regards, Thomas

Administrator [Syncfusion]
Replied On April 16, 2004 08:41 AM UTC

I assume you are putting th eFilterbar on th eparent grid and not on the drop grids, correct? Try handling the GridFilterBar.CreatingHeaderColumns event and cancel it if you are on the dropdown column. GridFilterBar filterBar = new GridFilterBar(); filterBar.CreatingColumnHeader += new GridFilterBarCreatingColumnHeaderEventHandler(filterBar_CreatingColumHeader); filterBar.WireGrid(this.customerGrid1);
//the handler code
private void filterBar_CreatingColumHeader(object sender, GridFilterBarCreatingColumnHeaderEventArgs e)
	if(e.ColName == this.customerGrid1.Binder.InternalColumns[0].MappingName)
		e.Cancel = true;

Administrator [Syncfusion]
Replied On April 16, 2004 04:02 PM UTC

Clay, Yes, I''m appying the filterbar to the "parent" grid. I''m using exactly the same code for the filterbar event. I''ll modify the filterbar sample and open a direct-trac incident if I can reproduce this behaviour. Regards, Thomas

Administrator [Syncfusion]
Replied On April 16, 2004 04:50 PM UTC

Clay, I found the reason, I''m setting the e.ColIndex to 0 when the filterbar is enabled in CurrentCellActivating. It works fine now. Regards, Thomas

Administrator [Syncfusion]
Replied On April 20, 2004 02:33 AM UTC

Clay, I want to close the popup grid when the CellDoubleClick event(popup grid) is raised. I''m using a modal form, when a close the dialog, the popup is still on the screen. Regards Thomas

Administrator [Syncfusion]
Replied On April 20, 2004 03:03 AM UTC

Clay, Found the solution in another post: CurrentCell.CloseDropDown Regards, Thomas

Administrator [Syncfusion]
Replied On April 20, 2004 05:02 PM UTC

When you close your modal form, try calling grid.CurrentCell.CloseDropDown to see if that will close the dropdown as well.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon