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
1100
Grid resized to be larger but no data rendered
posted

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.

Parents
No Data
Reply
  • 1100
    posted

    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.

    Thanks.

Children