Hi Natalia,
This can achieved by handling the CurrentCellKeyDown event and accordingly the Delete key is processed for the combobox cell to resolve this issue. The following is the code snippet.
private void gridTableControlCurrentCellKeyDown(object sender,GridTableControlKeyEventArgs e)
{
GridCurrentCell cc =e.TableControl.CurrentCell;
if(cc.Renderer.StyleInfo.CellType == GridCellTypeName.ComboBox )
{
if(e.KeyCode == Keys.Delete || e.KeyCode == Keys.Back)
{
e.Inner.Handled = true;
GridDropDownEditPartControl editControl = cc.Renderer.Control as GridDropDownEditPartControl;
int len = ( editControl.SelectionLength > 0 )? editControl.SelectionLength : 1;
int start = editControl.SelectionStart;
if( ( editControl.SelectionStart + len ) <= editControl.Text.Length)
cc.Renderer.ControlText = cc.Renderer.ControlText.Remove( editControl.SelectionStart,len);
editControl.SelectionStart = start;
}
}
}
Also refer this forum thread for more details.
http://www.syncfusion.com/Support/Forums/message.aspx?&MessageID=26118Best Regards,
Haneef