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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

editable grid grouping control

Thread ID:





68212 Sep 12,2007 05:47 AM UTC Sep 12,2007 07:51 AM UTC WinForms 1
Tags: Grouping
Asked On September 12, 2007 05:47 AM UTC

I am using syncfusion grid grouping control.
In my application some columns are editable and some are not editable...the following code that i am using dissables cursor from all the cell. kindly help me so that cursor is dissabled for only selected cells..

void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
Syncfusion.Grouping.Element el = e.TableCellIdentity.DisplayElement;
if (el.Kind == Syncfusion.Grouping.DisplayElementKind.Record && e.TableCellIdentity.Column != null &&
(e.TableCellIdentity.Column.Name == "Type" || e.TableCellIdentity.Column.Name == "Enabled"))
e.Style.ReadOnly = false;
e.Style.BackColor = Color.AliceBlue;
e.Style.ReadOnly = true;


void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, GridTableControlCancelEventArgs e)
e.Inner.Cancel = true;

Jeba S [Syncfusion]
Replied On September 12, 2007 07:51 AM UTC

Hi prabhjeet,

Thank you for posting query to us.

Prevent the edit mode

You can prevent the edit mode in three ways.

Option 1:Using Static CellType

this.gridGroupingControl1.TableDescriptor.Columns[1].Appearance.AnyRecordFieldCell.CellType = "Static";

Option 2:Using Enabled Property

this.gridGroupingControl1.TableDescriptor.Columns[1].Appearance.AnyRecordFieldCell.Enabled = false;

Option 3:By handling CurrentRecordContextChange

void Table_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e)
//Option 3
GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
GridTableCellStyleInfo style = table.GetTableCellStyle(cc.RowIndex, cc.ColIndex);
if (e.Action == Syncfusion.Grouping.CurrentRecordAction.BeginEditCalled)
if (style.TableCellIdentity.Column.Name == "NonEditable Column")
e.Cancel = true;

Please refer the sample and let us know if this helps.

Thank you for using Syncfusion Products.

Best Regards,


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon