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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

CurrentCell.MoveTo causes 100% CPU after using GridFindReplaceDialogSink

Thread ID:





23373 Jan 11,2005 01:32 PM UTC Jan 11,2005 03:20 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On January 11, 2005 01:32 PM UTC

I am using the GridFindReplaceDialogSink to search through my grid based on a text field. In the textchanged event I call my find procedure. But from here I always need to search from the first location in the datagrid, so I use grid.CurrentCell.MoveTo(1,1); When using this line, I occasionally get my CPU usage being maxed out. The view of the entire form will not refresh (even if forced). Without the moveto line, none of this occurs, but my starting point is lost after the first character is typed Any ideas? Thanks,

Administrator [Syncfusion]
Replied On January 11, 2005 02:06 PM UTC

So the field you are editing and the TextChanged event is from a TextBox on the Form and has nothing to do with the grid, correct? Do you get any exceptions being shown in the output window when you see this problem? (You might try setting Break on exception just to be sure.) If you have the source code, you can use our Assembly Manager to build and set up for use a debug version of our libraries. Then you could run your application in debug. When this problem occurs, you could then try to do a Break All, and get a call stack. This might give some insight into this problem. Just something to try. Before calling grid.CurrentMoveTo, try calling grid.Focus() to make sure teh grid has focus when you call CurrentCell.MoveTo.

Administrator [Syncfusion]
Replied On January 11, 2005 03:20 PM UTC

Yes I am using a separate TextBox. Setting the focus of the grid, and the returning the focus to the TextBox after the search fixed the problem. Thanks


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon