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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

select a cell from code behind

Thread ID:

Created:

Updated:

Platform:

Replies:

76119 Aug 22,2008 03:32 PM UTC Aug 25,2008 05:27 AM UTC WinForms 1
loading
Tags: GridControl
Osten Petersson
Asked On August 22, 2008 03:32 PM UTC

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


SubhaSheela R [Syncfusion]
Replied On 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


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

;