My XamDataGrid uses a DataSet. The idea behind this issue is the XamDataGrid doesn't consistently refresh the visual data of child tables when the underlying dataset changes. I have attached a sample that will reproduce the issue by taking the following steps:
1) Build and run the sample.
2) Expand all records (should be 3 levels deep).
3) Contract the second topmost record (Mary Hernandez).
4) Re-expand the second topmost record (Mary Hernandez). On a semi-related side note, the vertical scrollbar will incorrectly disappear.
5) Press the Change Data button. The underlying Name field for all the providers is changed; however, no change will be seen for Mary Hernandez.
6) For an added bonus, click on one of Mary Hernandez's providers and watch the screen automatically scroll to infinity and beyond (without a scrollbar even).
Please help. The data issue (and the scrolling issue as well) are causing major problems right now.
Thanks.
P.S. The project is called Office2kLineDemo... so don't worry you have the right project despite its name.
Actually I just went back in and tried it again and now that didn't lead to a different behavior - i.e. I still see the issue. Maybe when I first tested it, this caused enough of a delay to alter the behavior. The issue is submitted though and I requested that a support case be created for you regarding this issue.
Hi Alex,
I tried calling GC.Collect(2) at several places in the button1_Click event of the sample. None of them had any effect. Where exactly is it being called from when it works for you?
I was able to reproduce the issues you mentioned and wrote this up for review. I found that calling GC.Collect(2) before executing the changes works around the issue for now.