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.


Thread ID:





12956 Apr 16,2004 02:09 AM Apr 20,2004 01:02 PM Windows Forms 6
Tags: GridControl
Administrator [Syncfusion]
Asked On April 16, 2004 02:09 AM

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 04:41 AM

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 12:02 PM

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 12:50 PM

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 19, 2004 10:33 PM

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 19, 2004 11:03 PM

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

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

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.

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.