I need to flush my datagrid everytime when a treeviewitem is clicked. My code is given below.
datagrid
treeviewitem
private void treeView1_SelectedItemCh
I was able to clear my Data-Grid by setting the DataContext to null.
DataGrid.DataContext=null;