cell specifically editable.

Hi Person,

Try handling the TableControlCurrentCellStartEditing event and set e.Inner.Cancel = true if you do not want the particular current cell to go into edit mode.

private void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, GridTableControlCancelEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
if( cc.RowIndex == 5 && cc.ColIndex == 6)
e.Inner.Cancel = true;
}

Best regards,
Haneef

2 Replies

PE Person May 18, 2007 08:56 AM UTC

Hi,

I would like to know if it is possible to set the grid as non-editable while having some column cells are editable?

I know
gridGroupingControl1.TableDescriptor.AllowEdit = false;
can be used to set the grid to be non-editable.

Many Thanks.


PE Person May 25, 2007 06:41 AM UTC

Thanks, Haneef.

Loader.
Up arrow icon