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.

CellType = "DropDownGrid"

Thread ID:

Created:

Updated:

Platform:

Replies:

52702 Dec 1,2006 04:22 PM Dec 4,2006 01:47 PM Windows Forms 2
loading
Tags: GridControl
Kwabena Barwuah-Manu
Asked On December 1, 2006 04:22 PM

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

Administrator [Syncfusion]
Replied On December 4, 2006 01:32 AM

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

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

Thank you very much.

CONFIRMATION

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.

;