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

DropDownGrid/FilterBar

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 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;
}


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


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


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


AD Administrator Syncfusion Team April 19, 2004 11:03 PM

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


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

Loader.
Live Chat Icon For mobile
Up arrow icon