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


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

6 Replies

AD Administrator Syncfusion Team 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;

AD Administrator Syncfusion Team 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

AD Administrator Syncfusion Team 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

AD Administrator Syncfusion Team 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

AD Administrator Syncfusion Team April 20, 2004 03:03 AM UTC

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

AD Administrator Syncfusion Team 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.

Live Chat Icon For mobile
Up arrow icon