How to disable editing of cell which has a dropdown list

hi haneef,
How to disable editing of cell which has a dropdownTable.

2 Replies

PA Pawan Adur December 8, 2006 02:44 AM UTC


hi haneef,
if i do a AllowEdit = false; then its even not taking the selected value from drop down list.
>hi haneef,
How to disable editing of cell which has a dropdownTable.


AD Administrator Syncfusion Team December 8, 2006 10:26 AM UTC

Hi Pawan,
Please try this code snippet and let us know if this helps.

private void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCancelEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
if(cc.ColIndex==1)
{
e.Inner.Cancel=true;
}
}

Best Regards,
Jeba.

Loader.
Up arrow icon