AD
Administrator
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.
this.gridControl1.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll;
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
AD
Administrator
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.
this.gridControl1.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll;
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