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.
Syncfusion Feedback

How do you programatically select another cell?

Thread ID:

Created:

Updated:

Platform:

Replies:

32570 Aug 3,2005 06:32 PM UTC Aug 3,2005 06:59 PM UTC Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On August 3, 2005 06:32 PM UTC

How do you programatically select another cell? or highlight the text in another cell? I have run into a very odd problem and this seems to be the only way around it. I am using a databoundgrid.

Administrator [Syncfusion]
Replied On August 3, 2005 06:59 PM UTC

You call grid.CurrentCell.MoveTo to set a cell current. To select the text in the current cell, you can use code like: this.grid.CurrentCell.BeginEdit(); TextBox tb = this.grid.CurrentCell.Renderer.Control as TextBox; if(tb != null) tb.SelectAll();

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

;