Selecting Between Two WPF DataGrids

Feb 20, 2009 at 1:05 PM
I have two WPF DataGrid controls in a Window.  I want to have only one row selected at a time between both datagrids.  How do I deselect a row that is selected in one datagrid if a row is selected in the other datagrid?  Thanks.
Feb 20, 2009 at 1:38 PM
Look at SelectionChanged and SelectedItems.
Feb 20, 2009 at 2:14 PM
Setting the datagrid's SelectedIndex to -1 will deselect any selected row.  Thanks.