My XamDataGrid is bound to a DataSet with multiple parent-child tables. If I expand several children so contents go offscreen and resize my XamDataGrid (by resizing its window) then no visual data is actually present in the freshly sized areas. If I click on a scrollbar (which should not be there to begin with) then the data magically appears and the scrollbar disappears. How do I fix or workaround this problem? I have tried the following in the XamDataGrid's SizeChanged event:
<XamDataGrid>.BringIntoView();
<XamDataGrid>.InvalidateVisual();
<XamDataGrid>.UpdateLayout();
None of these have had any effect.
Thanks.
Hi Alex,
It didn't fix the problem and actually added a secondary problem (when records are programatically updated, the entire screen disappears and fades back in -as if being shown for the first time-).
Hello,
Thanks for clearing that out. I believe this is caused by the RecordContainerGenerationMode. Please try setting this to PreLoad so that the records will be loaded when load and not when brought into view.
P.S. I was able to reproduce this issue with the SQL Data Binding demo in the xamFeatureBrowser. Here is what I did:
1) Expand the window horizontally to 1.7 desktop sizes (a dual monitor display is required). This is done because the horizontal scrollbar can appear otherwise and potentially mess up the results.
2) Delete all top level records except the first two.
3) Resize the window so only the top two records show.
4) Expand the second record.
5) Resize the window vertically. Notice how much of the data is missing (i.e. not painted).
If you want to reproduce it a second time, the demo grid has to be reloaded.