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

How do you programatically select another cell?

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.

1 Reply

AD Administrator Syncfusion Team August 3, 2005 01:59 PM

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();

Loader.
Live Chat Icon For mobile
Up arrow icon