Updating the styling of a WPF DataGrid and forcing a refresh -


To implement conditional style for DataGrid, I am using an IValueConverter in combination with Datatiger (not all code, not XML).

this.dataGrid.InvalidateVisual () and then scroll down and back up to get a grid element to refresh itself Is there a better way of doing things?

I tried to use this.dataGrid.Items.Refresh () , but it causes the debugging of grid data (which may be thousands of rows) That is, in turn, causes a major leap in my program's memory consumption. Does anybody have any idea how to implement the reconstruction of the WPF data grid manually? I also tried to code this.dataGrid.Dispatcher.Invoke ((verb) ((=)} {}} to try to force the dispatcher to perform an operation that As a result, a radra, but no effect. Any suggestion is appreciated.


Comments