I am using wpftoolkit datagrid control which was binding using collectionviewsource for records grouping. Whenever user trying to clear the form i need to clear the datagrid also. I tried to set datagrid itemsource to null but it works fine for clear functionality .if user trying to add any records to datagrid it's not loading.
So could any one please provide me a solution to clear the datagrid.
Thanks In Advance.
I use ObservableCollection for this type of situations. Example:
Xaml: