The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
When the user click on a cell to edit the text, the default behavior is to select all the text. It's a good default behavior since most of the time users expect to replace the text, but in this specific case the user expect to add text. So we would like to change that behavior so the cursor is position at the end of the text when the user click on the cell to edit it.
DODominik.Delisle-OngOctober 14, 2010 03:45 PM UTC
Never mind, I found the solution
Just need to hook to gridControl.CurrentCellControlGotFocus, cast the control to GridOriginalTextBoxControl and update the SelectionLength and SelectionStart properties
gridControl.CurrentCellControlGotFocus += new ControlEventHandler(gridBinder_CurrentCellControlGotFocus);
...
private void gridBinder_CurrentCellControlGotFocus(object sender, ControlEventArgs e) { GridOriginalTextBoxControl textBoxControl = e.Control as GridOriginalTextBoxControl; if (textBoxControl == null) return;
RCRajadurai C Syncfusion Team October 14, 2010 08:13 PM UTC
Hi Dominik,
Thanks for your interest in Syncfusion Products.
You could get the SelectAll functionality in gridcell by handling the following property setting alone. this.gridControl1.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll;
Please let us know if you have any further concerns.