ADAdministrator Syncfusion Team 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.
PEPeterAugust 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.
PEPeterAugust 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.
ADAdministrator Syncfusion Team 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.