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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

CellType = "DropDownGrid"

Thread ID:





52702 Dec 1,2006 09:22 PM UTC Dec 4,2006 06:47 PM UTC WinForms 2
Tags: GridControl
Kwabena Barwuah-Manu
Asked On December 1, 2006 09:22 PM UTC


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.



Administrator [Syncfusion]
Replied On 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.

Best Regards,

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

Thank you very much.


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

or the page will be automatically redirected to 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