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

Loader.
Up arrow icon