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

Question about ActivateCurrentCellBehaviour

Thread ID:





14499 May 27,2004 05:22 PM UTC May 27,2004 06:45 PM UTC WinForms 1
Tags: GridControl
Asked On May 27, 2004 05:22 PM UTC

Hi I have a question about selecting text in the activeCell. Currently, I set the property ActivateCurrentCellBehaviour to SelectAll which works how I need it to except in one case. If I enter a cell the text gets selected properly however if the text is still selected and refresh gets called on the grid the text becomes unselected is there any way I can get around this. I need the text to stay selected if it was selected before the refresh was called.

Administrator [Syncfusion]
Replied On May 27, 2004 06:45 PM UTC

Are you explicitly calling Refresh? if so, you can save the selection state of the currentcell, and then restore it after the call? GridCurrentCell cc = this.gridControl1.CurrentCell; GridTextBoxControl tb = cc.Renderer.Control as GridTextBoxControl; int selStart = tb.SelectionStart; int selLength = tb.SelectionLength; // do your refresh this.gridControl1.Refresh(); //reset thing cc.BeginEdit(); tb.SelectionStart = selStart; tb.SelectionLength = selLength;


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon