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

Setting focus on a in a virtual grid cell

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


2 Replies

SR Sri Rajan Syncfusion Team April 24, 2008 03:15 PM UTC

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.




VG Vijayarajan Govindarajan April 24, 2008 06:29 PM UTC

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.





Loader.
Live Chat Icon For mobile
Up arrow icon