I am setting the item sourceproperty of sfdatagridas shown below: I use this code in Refresh button click.
datagrid.Itemsource = dtData.Defaultview;
But every time I click the refresh button. the same rows are added to the existing rows in the sfdatagrid. Is there a way I could remove the item source binding. like. datagrid.Itemsource = null; this works fine in .net defaultWPF datagridbut not with sfdatagrid.
JGJai Ganesh S Syncfusion Team July 4, 2017 01:18 PM UTC
We cannot understand your requirement clearly but we suspect that you want to refreshing the SfDataGrid ItemsSource. We have created in a simple sample for refreshing the ItemsSource while using DataTable but it working fine in our end.