Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
12761 | Apr 12,2004 07:10 AM UTC | Apr 13,2004 11:15 PM UTC | WinForms | 5 |
![]() |
Tags: GridControl |
private void gridDataBoundGrid1_RowsDeleting(object sender, GridRowRangeEventArgs e)
{
if(this.grid.CurrentCell.IsEditing)
{
e.Cancel = true;
GridTextBoxControl tb = this.grid.CurrentCell.Renderer.Control as GridTextBoxControl;
if(tb.SelectionLength == 0)
tb.SelectionLength = 1;
tb.SelectedText = "";
}
}
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.