BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void gridDataBoundGrid1_RowsDeleting(object sender, Syncfusion.Windows.Forms.Grid.GridRowRangeEventArgs e) { GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; if(cc.IsEditing) { e.Cancel = true; GridTextBoxControl gtbc = cc.Renderer.Control as GridTextBoxControl; if(gtbc != null) gtbc.SelectedText = ""; } }2) Do you have the DropDownStyle set to AutoComplete? If so, you are forcing the grid to autocomplete word after the backspace which will likely be the same selection. Try setting the DropDownStyle to Editiable. That will still autocomplete, but also lets you type values not in the list whic means it will let you backspace over text even if there is no match.
void gridDataBoundGrid1_RowsDeleting(object sender, GridRowRangeEventArgs e)
{
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
if (this.gridDataBoundGrid1.Model.Selections.Ranges.ActiveRange.IsRows && cc.IsEditing)
{
e.Cancel = true;
GridTextBoxCellRenderer cr = cc.Renderer as GridTextBoxCellRenderer;
if (cr != null)
{
cr.TextBox.Select(cr.TextBox.SelectionStart, 1);
cr.TextBox.Text = cr.TextBox.Text.Replace(cr.TextBox.SelectedText, "");
cr.TextBox.SelectionStart = cr.TextBox.TextLength;
}
}
}