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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Howto select cell contents

Thread ID:





44990 Jun 8,2006 09:29 AM UTC Jun 22,2006 12:35 PM UTC WinForms 6
Tags: GridControl
Christian Lützenkirchen
Asked On June 8, 2006 09:29 AM UTC

Hi, is there an option in GridControl to automatically select the contents of an editable grid cell when the user enters the cell (behaviour like textbox)? Regards, Christian

Administrator [Syncfusion]
Replied On June 8, 2006 09:43 AM UTC

Hi Christian, Yes, setting the ActivateCurrentCellBehavior property of the grid to GridCellActivateAction.SelectAll will select all text when ever a cell becomes current cell. this.gridControl1.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll; Regards, Calvin.

Christian Lützenkirchen
Replied On June 8, 2006 11:39 AM UTC

Hi Calvin, thank you for your help. It works fine. Regards, Christian

Christian Lützenkirchen
Replied On June 8, 2006 12:48 PM UTC

Hi Calvin, can I set this behaviour in Syncfusion.Windows.Forms.Tools.MaskedEditBox Syncfusion.Windows.Forms.Tools.ButtonEdit Syncfusion.Windows.Forms.Tools.DoubleTextBox Syncfusion.Windows.Forms.Tools.DateTimePickerAdv Syncfusion.Windows.Forms.Tools.CurrencyTextBox Syncfusion.Windows.Forms.Tools.IntegerTextBox ? Regards, Christian

Anupama Roy [Syncfusion]
Replied On June 9, 2006 10:42 AM UTC

Hi Christian, Sorry,we need some clarification regarding your query. Do you want to know about the mentioned controls within the gridcell or do you mean the standalone controls in tools? Please let us know regarding this so that we can provide you an accurate answer. Thanks, Anu.

Christian Lützenkirchen
Replied On June 9, 2006 10:53 AM UTC

Hi Anu, sorry, I mean standalone controls.... Regards, Christian

Anupama Roy [Syncfusion]
Replied On June 22, 2006 12:35 PM UTC

Hi Christian, Sorry for the extended delay in getting back to you. For Controls DoubleTextBox,CurrencyTextBox and IntegerTextBox, you can set the property SelectAllOnFocus to true so that it selects the whole text when they receive focus.In fact the controls MaskedEditBox and ButtonEdit does not exhibit any property to do so and hence you will have to call SelectAll () under the GotFocus event.Also,the architecture of dateTimePickerAdv does not support the selection of all the fields at the same time as it is designed in such a way that the first field gets selected when the control receives focus.Here,by setting AutoForwarding property to true,you can advance the selection to each field. Please take a look at the sample for more clarification. Thanks for your patience. Regards, Anu.


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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