Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
7848 | Oct 10,2003 06:08 PM UTC | Oct 20,2003 08:20 AM UTC | WinForms | 12 |
![]() |
Tags: GridControl |
private void gridDataBoundGrid1_RowsDeleting(object sender, GridRowRangeEventArgs e) { GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; GridTextBoxControl tb = cc.Renderer.Control as GridTextBoxControl; if(tb != null) { e.Cancel = true; if(cc.IsEditing) { if(tb.SelectionLength == 0) tb.SelectionLength = 1; } else tb.SelectAll(); 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.