Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
DataGrid refresh - can't make it do that
posted

I'm using a data grid that has its data source replaced programatically from time to time based on user selections.  I've tried every suggestion I can find in the forums to force a refresh of the data and its layout without success.  I'm using the latest 7.2 hotfix (7.2.20072.1007).

The grid uses AssigningFieldLayoutToItem and RecordExpanding to arrange for layout and, sometimes, content based on individual record state.

The symptom is that all rows that were previously there retain their original values, but they are not active (you cannot select or expand them).  If the new list is longer, the new rows appear and are active.

The only way to get it to "fix", is to switch away from the containing tab item (its in a tab control) and back, manually.  This causes it to show the correct data.  (Not a suitable solution, just a symptom).

I noticed a comment stating there was a bug.  Perhaps it's still there in this context.  Is there some way to get the grid to "start over" when we replace its data source with a different object?

At this point, I'm seriously considering dropping the use of this library.  It's lack of certain features and/or the presence of bugs and problems like this makes it not worth it. 

Dave