Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
435
Refreshing Header in XamDataGrid
posted

I have a xamDataGrid that is bound to a custom IBindingList.

I do something that causes the data to change outside of the context of the Grid (I change my units of measure from Metric to Imperial).  When I do this, I force the grid to refetch the data by reseting the binding

IEnumerable temp = this.ResultSetDataGrid.DataSource;

this.ResultSetDataGrid.DataSource = null;

this.ResultSetDataGrid.DataSource = temp;

This works fine except that it doesn't refresh the column header.  Does anyone know how to force the header to refresh its values?

Thanks.