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

Edit GridListControl

Hi,
I have GridListControl which has multicolumn DataTable as a datasource. I want to make the last column editable. I tried to set gridList1.Grid.ReadOnly=false; but it does not work.

Is it any way to do it?

Thanks,
Dargon

2 Replies

HA haneefm Syncfusion Team June 18, 2007 11:10 PM UTC

Hi Dargon,

There is no built-in support for Editable GridListControl.If you want to do this, you need to go for Custom CellType. A custom CellType can be created, 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. This sample in \Syncfusion\Essential Studio\4.1.0.10\windows\Grid.Windows\Samples\In Depth\DerivedCellControlTutorial can be referred.Please look at the sample for more detail

After creating the custom celltype, it has to be registered through CellModels.Add

this.gridControl1.CellModels.Add("GridListEdit", new GridListEditCellModel(this.gridControl1.Model,new GridListEdit()));

Then you may use
style.CellType = "GridListEdit";

Please refer to the attached sample for implementing it.
GridListEditSample.zip

Best Regards,
Haneef


DA Dargon June 19, 2007 02:05 PM UTC

Thanks for reply, Haneef.
Dargon

>Hi Dargon,

There is no built-in support for Editable GridListControl.If you want to do this, you need to go for Custom CellType. A custom CellType can be created, 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. This sample in \Syncfusion\Essential Studio\4.1.0.10\windows\Grid.Windows\Samples\In Depth\DerivedCellControlTutorial can be referred.Please look at the sample for more detail

After creating the custom celltype, it has to be registered through CellModels.Add

this.gridControl1.CellModels.Add("GridListEdit", new GridListEditCellModel(this.gridControl1.Model,new GridListEdit()));

Then you may use
style.CellType = "GridListEdit";

Please refer to the attached sample for implementing it.
GridListEditSample.zip

Best Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon