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

Howto select cell contents

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

6 Replies

AD Administrator Syncfusion Team 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.


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

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


CL Christian Lützenkirchen 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


AR Anupama Roy Syncfusion Team 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.


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

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


AR Anupama Roy Syncfusion Team 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.

Loader.
Live Chat Icon For mobile
Up arrow icon