I need to flush my datagrid everytime when a treeviewitem is clicked. My code is given below.
datagrid
treeviewitem
private void treeView1_SelectedItemCh
I have tried several approaches and this was by far the best and most reliable one:
dataGrid.Columns.Clear(); dataGrid.Items.Clear(); dataGrid.Items.Refresh();