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
close icon

select a cell from code behind

question: i have managed to select from code behind but even though it is marked as selected I still have to click it to be able to write in it.

uh i use
scrollinview and selectrange to show the cell

I am sure this is trivial but I haven´t found any example of this.
please advice


1 Reply

SR SubhaSheela R Syncfusion Team August 25, 2008 05:27 AM UTC

Hi Osten,

Thanks for your interest in Syncfusion products.

You can use the below code and it will work. Try it in button handler.

Here is the code:


grid.Selections.Add(GridRangeInfo.Cells(1,1,2,2));
grid.Focus();


You can also refer the below KB article that discusses the types of selection.

Here is the KB link:

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=344

Please let me know if it helps.

Regards,
Subhasheela R


Loader.
Live Chat Icon For mobile
Up arrow icon