Hi prabhjeet,
Thank you for posting query to us.
Prevent the edit modeYou 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.
http://websamples.syncfusion.com/samples/Grid.Windows/F68212/main.htmThank you for using Syncfusion Products.
Best Regards,
Jeba.