Hi,
I change the DataSource for my XamDataGrid programmatically and everything works fine, but the grid doesn't seem to refresh/redraw the currently displayed records. If I scroll up/down and then bring the records back into view, the data has refreshed ok.
I have tried setting the DataSource = null (in hopes of clearing the grid) before resetting it to the new collection, but that doesn't work.
Any suggestions please?
Thank you.
Jeff
I was able to resolve this myself by playing around for a bit.
Ultimately this worked for me:
mydg.DataSource=null;
mydg.UpdateLayout();
mydg.DataSource = newDS;
myds.UpdateLayout();
no other combination worked, but this did the trick.
Hope that helps you.
I have the same scenario where I have got two datagrids. Upper datagrid shows the items and the lower show the details of the selected item. If I have just one item in the upper datagrid and delete that single item. My lower datagrid doesn't refresh and it still shows the item's detail. Setting DataSource to null didn't work. How to refresh the Xamdatagrid or notify it that the collection it is bound to is empty now and it need not show any item details.
Any help is appreciated...
Nasir
This was a bug that has already been fixed. I would try the latest hotfix. If that doesn't work then contact developer support at http://ko.infragistics.com/gethelp