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.

DataBound Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

13441 Apr 28,2004 11:08 AM Apr 29,2004 04:13 AM Windows Forms 1
loading
Tags: GridControl
Doug Finke
Asked On April 28, 2004 11:08 AM

I have a grid whose underlying datasource gets updates about 3 times/second. The grid is sorted. And as the updates flow the datarows shuffle around. If the user clicks on a row, I store the “key” related to that row so that when the datasource is updated, I can move the row and cell into view. this._dataGrid.CurrentCell.MoveTo(rowIndex, CurrentColIndex); this._dataGrid.ScrollCellInView(rowIndex, CurrentColIndex); this._dataGrid.LeftColIndex = LeftColIndex; . . . Restore any selected columns Model.Selections.Add. I let the application run in the background. When brought to the foreground, after while, the grid does not repaint. I have tried Invalidate and other approaches to get the grid to repaint. It does not work. The above code executes only if a user clicks on a row. If I bring up the app and do _not_ click on a row, do the same steps as above, the grid repaints no problem. Any suggestions? Thanks

Administrator [Syncfusion]
Replied On April 29, 2004 04:13 AM

Have you tried code such as this.ActiveControl = this.gridDataBoundGrid1; // here this is the parent form this.gridDataBoundGrid1.Focus(); to make sure the grid has focus when you bring it to the front.

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.

;