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.

CurrentCell.MoveTo causes 100% CPU after using GridFindReplaceDialogSink

Thread ID:

Created:

Updated:

Platform:

Replies:

23373 Jan 11,2005 08:32 AM Jan 11,2005 10:20 AM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 11, 2005 08:32 AM

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 09:06 AM

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 10:20 AM

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

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.

;