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.

Custom column editor

Thread ID:

Created:

Updated:

Platform:

Replies:

53781 Dec 20,2006 04:51 AM Dec 20,2006 05:50 AM Windows Forms 1
loading
Tags: GridControl
Vladi Gubler
Asked On December 20, 2006 04:51 AM

Hi,
We are considering purchasing your grid

We need to inherit a grid column so we can specify our custom combobox as the editor.
Is it possible with your grid and could you provide a code sample?

Many thanks

Administrator [Syncfusion]
Replied On December 20, 2006 05:50 AM

Hi Vladi,

Thanks for evaluating Syncfusion Products.

If you want to host the custom ComboBox control in a single grid cell, then you can do this by setting the celltype of the cell to be a control and then set the control that you want the cell to be associated with. Below is the code.

this.gridControl1[2,2].CellType = "Control";
this.gridControl1[2,2].Control = userControl1;

If you want to havethe custom ComboBox control in several cells, then you will have to create a custom celltype deriving the control. It requires a model class and a renderer class. The model class handles the serialization requirements for the control and creates the renderer class. The renderer class handles the UI requirements of the cell.

Please refer to the following shipped browser sample for more details.
[install drive]\Syncfusion\Essential Studio\4.4.0.49\windows\Grid.Windows\Samples\CustomCellTypes\DerivedCellControlTutorial\
[install drive]\Syncfusion\Essential Studio\4.4.0.49\windows\Grid.Windows\Samples\CustomCellTypes\DropDownFormAndUserControlSample\

Here is a minimal sample that shows you to add the dropdown grid in a cell.
DropDownGridCellSample.zip

Let me know if you are looking something different.

Best Regards,
Haneef

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.

;