Cell selection on edit

When the user clicks on a cell to start editing it I would like all the text in the cell to be selected by default - so that if user starts typing they end up replacing the input rather than appending/prepending to it.

i.e. I want it to behave just like the Address field on Internet Explorer.

What's the best way of doing this?

Ta
Sat

1 Reply

AD Administrator Syncfusion Team November 14, 2006 05:04 AM UTC

Hi Sat,

Try this code

this.gridControl1.Model.Options.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll;

Best Regards,
Haneef

Loader.
Up arrow icon