DO
Dominik.Delisle-Ong
October 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;
textBoxControl.SelectionLength = 0;
textBoxControl.SelectionStart = textBoxControl.TextLength;
}
Thanks,
Dominik
RC
Rajadurai 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.
Regards,
Rajadurai