I use a DataGrid in a popup window. When it is shown in the first-time, no rows are selected. A row gets selected when using the data grid. Then the
Popup DataGrid will be closed.
When I open the popup window again, the previous selection is still there. How do I initialize the DataGrid so it has no row selected?
When you are about to call the pop up window with the datagrid, set the selectedIndex property to -1 (yourDataGrid.selectedIndex=-1). This shall make sure that no rows are selected in your datagrid. Let me know if that works for you.