We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon