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
1336
DataRecordPresenter IsSelected style not clearing when in tab control
posted

Hi,

Please find attached a sample project demonstrating an issue with the XamDataGrid, when housed inside a tab control (or XamDockManager, I just used a tab control for simplicity in the example).

There is a single window, with a tab control inside, with two tabs.  I've put a XamDataGrid inside each tab.

I've set a specific combination of settings, to turn off edit and record selectors and set the SelectionTypeRecord to 'single'.  On the grid in the first tab only, I've set the CellClickAction to 'SelectRecord'.

Run the app, select the top record on the grid in the first tab.  Now switch to the second tab... then back to the first again.  The top record still appears to be selected, but try clicking on a different row... it now appears there are two rows selected even though SelectionTypeRecord is set to 'single'!

Snooping the app shows that only the second 'selected' record has IsSelected and IsActive set to true.... the top record has both these values set to false but is still showing in a 'selected' style.

The grid in the second tab, whose CellClickAction has been left on 'SelectCell', works as expected.

Dave

DataGridIsSelected.zip
Parents Reply Children