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.
I have a gridcontrol with one column editable. I would like to select all inside the cell whenever the user click cell. So I can garantee the user will change the whole value, but not adding numbers in between by accident.
ADAdministrator Syncfusion Team August 3, 2006 04:40 AM UTC
Hi Chris,
Set the ActivateCurrentCellBehavior property of the grid to GridCellActivateAction.SelectAll, this will help you to select all text when ever a cell becomes current cell.
To avoid the numbers being entered, the CurrentCellKeyPress event can be handled to do it. Below is the code snippet.
if(char.IsDigit(e.KeyChar)) { e.Handled = true; }
Thanks for using Syncfusion Products. Regards, Rajagopal
ADAdministrator Syncfusion Team August 3, 2006 01:07 PM UTC
work perfectly. thanks a lot >Hi Chris,
Set the ActivateCurrentCellBehavior property of the grid to GridCellActivateAction.SelectAll, this will help you to select all text when ever a cell becomes current cell.