Hi,
I have a grid bound to a DataTable (cannot use Observable collection of custom objects), when I add or delete a row from the dataTable instance the grid is not refreshed, which is kind of expected. But the problem is when I force a grid refresh, the only way I found to accomplish that was doing something like this:
This is extremely expensive. Is there a more convinient and less expensive way to refresh the grid rows?
Thanks,
Marco
I have a grid bound to a DataTable (cannot use Observable collection of custom objects), when I add or delete a row from the dataTable instance the grid is not refreshed, which is kind of expected. But the problem is when I force a grid refresh, the only way I found to accomplish that was doing something like this:
myGrid.ItemsSource = null; |
myGrid.ItemsSource = samplesDataTable; |
This is extremely expensive. Is there a more convinient and less expensive way to refresh the grid rows?
Thanks,
Marco