GridControl Editable column

Hi,
How can I set some columns of my GridControl to Editable ?

Thanks


1 Reply

AD Administrator Syncfusion Team March 28, 2008 08:42 AM UTC


Hi Simon ,

Thanks for the interest in Syncfusion products.

If your intention is to set the Column Header of the GridControl editable, then you will need to change the CellType from "Static" to "TextBox". Please refer the code snippet below that shows how you can set the celltype of Textbox.


GridStyleInfo style = this.gridControl1[0, 2];
style.CellType = "TextBox";
style.CellAppearance = GridCellAppearance.Raised;
this.gridControl1.AllowSelection &= ~GridSelectionFlags.Column;


Please refer the sample in the below link that illustrates the above.

http://websamples.syncfusion.com/samples/Grid.Windows/F72544/main.htm

Please let me know if you have any questions.

Regards,
Asem.



Loader.
Up arrow icon