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.

GridControl Editable column

Thread ID:

Created:

Updated:

Platform:

Replies:

72544 Mar 26,2008 04:22 AM Mar 28,2008 04:42 AM Windows Forms 1
loading
Tags: GridControl
Simon
Asked On March 26, 2008 04:22 AM

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

Thanks


Administrator [Syncfusion]
Replied On March 28, 2008 04:42 AM


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.



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.

;