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
close icon

CellType = "DropDownGrid"

Hi,

When I set CellType = "DropDownGrid" can I supply another grid other than the grid itself?
I want to show my own drop down grid when I click on the combobox that is different from the current grid or the grid hosting the combobox.

Thanks

Kwabena

2 Replies

AD Administrator Syncfusion Team December 4, 2006 06:32 AM UTC

Hi Kwabena,

There is a property ( DropDownGridCellModel.EmbeddedGrid ) to control the display of the child grid in the dropdown cell when moving the current cell or click inside the current cell. You can specify it using this code:

// Create and register dropdown grid cells
DropDownGridCellModel aModel = new DropDownGridCellModel(this.gridControl1.Model);

// create a child grids to be placed in the dropdowns
//you need to set the own grid for display.
aModel.EmbeddedGrid = this.gridControl2;

gridControl1.CellModels.Add("GridADropCell", aModel);

// set the dropdowns in a couple of cells
this.gridControl1[rowIndex,1].Text = "Grid A";
this.gridControl1[rowIndex,1].CellType = "GridADropCell";

Here is a sample.
DropdownGrid.zip

Best Regards,
Haneef


KB Kwabena Barwuah-Manu December 4, 2006 06:47 PM UTC

Thank you very much.

Loader.
Live Chat Icon For mobile
Up arrow icon