HA
haneefm
Syncfusion Team
October 18, 2007 10:39 PM UTC
Hi Bill,
To make the cell readonly, you can use this handler to prevent the edit cursor from showing. Please try this code to see if it does what you need.
private void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, GridTableControlCancelEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
GridTableCellStyleInfo style = e.TableControl.Model[cc.RowIndex, cc.ColIndex];
if(style.ReadOnly)
e.Inner.Cancel = true;
}
Best regards,
Haneef
BL
Bill Langlais
October 19, 2007 02:09 AM UTC
Hi,
That worked great!!!
Thanks Haneef!
WJL
>Hi Bill,
To make the cell readonly, you can use this handler to prevent the edit cursor from showing. Please try this code to see if it does what you need.
private void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, GridTableControlCancelEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
GridTableCellStyleInfo style = e.TableControl.Model[cc.RowIndex, cc.ColIndex];
if(style.ReadOnly)
e.Inner.Cancel = true;
}
Best regards,
Haneef