It works so well.Thanks
jeaning
>One way you can do this is to set and leave this.gridControl1.ActivateCurrentCellBehavior = GridCellActivateAction.SetCurrent;.
>
>Then handle the CurrentCellStartEditingt event and cancel it if the current cell is in a row and column you do not want to edit.
>
>private void gridControl1_CurrentCellStartEditing(object sender, CancelEventArgs e)
>{
> GridCurrentCell cc = this.gridControl1.CurrentCell;
> if(cc.ColIndex > 2 || (cc.ColIndex == 2 && this.gridControl1[cc.RowIndex, 4].Text != "1"))
> {
> e.Cancel = true;
> }
>}
>