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
495
Second XamDataGrid doesn't get displayed properly
posted

Normal 0 21 false false false DE-CH X-NONE X-NONE MicrosoftInternetExplorer4

Hi

I'm facing the following issue. In my app I'm using a XamDataGrid in two completely different scenarios (let’s call them grid1 and grid2). They can’t be displayed at the same time.

If I’m starting my program and switch to grid1 everything looks fine. If I’m restarting my program and switch to grid2 everything looks fine. However, I switch from grid1 to grid2 (without restarting), grid2 is not properly displayed!

Note: I’m hosting WPF controls in a XamDataGrid Cell as explained here: http://blogs.infragistics.com/blogs/andrew_smith/archive/2009/03/27/hosting-wpf-controls-in-a-xamdatagrid-cell.aspx

Grid how it looks after a restart (OK):

Grid after switching from grid1 to grid2 (any cell is in render mode)

If I'm selecting a cell though, the cell in edit mode displays the expected result

Any hints? It seems like grid2 gets rendered without having any underlying data... Bug again, it just happens if I display a completely unrelated other XamDataGrid first...