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.

catching end of update from dataview

Thread ID:

Created:

Updated:

Platform:

Replies:

6436 Aug 12,2003 11:32 PM Aug 13,2003 08:34 AM Windows Forms 4
loading
Tags: GridControl
Peter
Asked On August 12, 2003 11:32 PM

is there an event that fires when the grid finishes refreshing from the dataview. or is there a way to see if the databound grid is currently being sync'd with the dataview TIA, Peter

Administrator [Syncfusion]
Replied On August 13, 2003 02:27 AM

The GridDataBoundGrid.Binder.ItemChanged is raised for each change from your DataSource. The grid does not know when your datasource has 'finished updating', it only knows that an item was changed. So, this event is fired for each change. If you have access to teh datasource, and can raise an event that indicates the datasource is finished updating, then you could subscribe to the event to know this has occurred. But without this additional information from the datasource itself, I don't know of a way to get it from the grid. If your updates are always row by row, then the GridDataBoundGrid.Binder.ItemChanged can tell you when a row has completed updating, but again it does not know whether this is the last row to be updated or not.

Peter
Replied On August 13, 2003 07:22 AM

The problem is that if I am getting data from the dataView1 on dataView1_ListChanged the grid does not draw properly. Thus resulting in a blank grid. The rows are there but the data is not.

Peter
Replied On August 13, 2003 07:27 AM

right now to make it work im having the ListChanged event start a timer and after 100ms it fires, this way avoiding the problem. This of course is a broken fix because if the data is big enough and it takes more than 100ms to load it will not refresh on the grid properly. two things can help one the event after the grid is refreshed or a workaround. or second a property that can let me know if the grid is currently refreshing.

Administrator [Syncfusion]
Replied On August 13, 2003 08:34 AM

Normally, if you set grid.DataSource = myDataView, and the dataview changes itself, then the grid should reflect the change without you having to do anything. Can you post a little sample showing the problem you are having, or submit a Direct Trac support incident with a sample? If so, maybe we can spot what is failing here.

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.

;