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
355
XamDataGrid not refreshing
posted

Hi, 

I have som strange behavior on an XamDataGrid, which causes it not to be redrawn.

The grid is on a tabitem, which in turn have another tabcontrol with several other xamdatagrids.

When I change the maintabcontrols selected tabitem, and change back to the tabitem with the xamdatagrid, only the "grouping header" get's rendered. The user has to physically trigger a redraw by either pressing the grouping expander "bar" or by dragging the scrollbar in the grid. This forces a redraw.

However if the "groupingheader" is expanded, the grid gets refreshed.

This only happens with the grid, all other tabs containing all other sorts of controls doesn't have this issue. Is there a way to force the grid to be redrawn? Is there anything I can do to avoid this behavior?

 

Best regards,

Stian Farstad

  • 30945
    Offline posted

    Hello Stian,

     

    I have been looking into your post and I have created a sample application in which a XamDataGrid is in a tab item of the XamTabControl. When you group the XamDataGrid and change to another tab and the return to the tab with the XamDataGrid, it seems that it is redrawn correctly. I have also added and a button to the application which changes some of the data bound to the XamDataGrid. If the data is changed  while the tab with the XamDataGrid is not the active, the XamDataGrid is also redrawn correctly.

     

    Please let me know if you can reproduce the behavior that you are describing with my sample application or I have misunderstood you in any wat.

     

    Looking forward to hearing from you.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    XamDataGridInTabItem.zip