In my WPF application, I have a datagrid with selectionchanged event. Whenever user selects any row, i am populating the data from the database for the selected item.
Now when i click on a button i want to clear the datagrid selection. For that i am using the following statement.
But it is throwing an object reference error for this,
Can anyone please let me know what should i do to remove the selection of the datagrid.
Regards Anil Kumar
View Complete Post