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.
Unfortunately, activation email could not send to your email. Please try again.

Howto select cell contents

Thread ID:

Created:

Updated:

Platform:

Replies:

44990 Jun 8,2006 05:29 AM Jun 22,2006 08:35 AM Windows Forms 6
loading
Tags: GridControl
Christian Lützenkirchen
Asked On June 8, 2006 05:29 AM

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 05:43 AM

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 07:39 AM

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

Christian Lützenkirchen
Replied On June 8, 2006 08:48 AM

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 06:42 AM

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 06:53 AM

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

Anupama Roy [Syncfusion]
Replied On June 22, 2006 08:35 AM

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.

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.

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.

;