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.

Setting focus on a in a virtual grid cell

Thread ID:

Created:

Updated:

Platform:

Replies:

73175 Apr 23,2008 02:17 PM Apr 24,2008 02:29 PM Windows Forms 2
loading
Tags: GridControl
Vijayarajan Govindarajan
Asked On April 23, 2008 02:17 PM

Hi,

How do i set the focus on a virtual grid cell?
I tried CurrentCell.MoveTo(), but it is giving an "Controls created on one thread cannot be parented to a control on a different thread." error

Vijay


Sri Rajan [Syncfusion]
Replied On April 24, 2008 11:15 AM

Hi Vijay,

This issue is because of thread. When using multiple threads, note that any calls into the grid must be done on the thread that creates it, and you can use the grid.InvokeRequired to check for this.
See the following KB article for more details.
http://www.syncfusion.com/Support/article.aspx?id=572

If you still face the same issues, please send us a working sample so that we may work on it here for you.

Let me know if you need further help in implementing it.

Best Regards,
Srirajan.



Vijayarajan Govindarajan
Replied On April 24, 2008 02:29 PM

Hi Srirajan,

After checking grid.InvokeRequired and using BeginInvoke, it worked.

Thanks for the help.
Vijay

>Hi Vijay,

This issue is because of thread. When using multiple threads, note that any calls into the grid must be done on the thread that creates it, and you can use the grid.InvokeRequired to check for this.
See the following KB article for more details.
http://www.syncfusion.com/Support/article.aspx?id=572

If you still face the same issues, please send us a working sample so that we may work on it here for you.

Let me know if you need further help in implementing it.

Best Regards,
Srirajan.





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.

;