Thanks for your reply!
When I click "DEL" key in a TextBox cell, it clears the value and then goes to "KeyDown" event, when KeyCode is recognized as "Menu".
ClearingCells event is never fired.
Could you tell me how to avoid the "clear cells" behavior performed by the Form itself?
PS, I know that in GDBG, there''s a property "EnableRemove" which could shield the "clearing" event.
>You can use the CellClearing event. Here is an event sample that clears any cell other than teh header cells.
>
>
>private void gridControl1_ClearingCells(object sender, GridClearingCellsEventArgs e)
>{
> foreach(GridRangeInfo range in e.RangeList)
> {
> GridRangeInfo r = range.ExpandRange(1, 1, gridControl1.RowCount, gridControl1.ColCount);
>
> this.gridControl1.ChangeCells(r, "");
> }
> e.Handled = true;
> e.Result = true;
>}
>