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.

select a cell from code behind

Thread ID:

Created:

Updated:

Platform:

Replies:

76119 Aug 22,2008 11:32 AM Aug 25,2008 01:27 AM Windows Forms 1
loading
Tags: GridControl
Osten Petersson
Asked On August 22, 2008 11:32 AM

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 01:27 AM

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.

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.

;