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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Cell selection on edit

Thread ID:

Created:

Updated:

Platform:

Replies:

51746 Nov 13,2006 03:02 PM UTC Nov 14,2006 05:04 AM UTC WinForms 1
loading
Tags: GridControl
Sat Sandhu
Asked On November 13, 2006 03:02 PM UTC

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

Administrator [Syncfusion]
Replied On November 14, 2006 05:04 AM UTC

Hi Sat,

Try this code

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

Best Regards,
Haneef

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;