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

Custom column editor

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

1 Reply

AD Administrator Syncfusion Team December 20, 2006 10:50 AM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon