I have a DataGrid
in my WPF window. I bind its DataContext
to a System.Data.DataTable
. When I construct and fill my DataTable
, the DataGrid
updates and works perfectly. Now I want to find some elements in my DataTable
and highlight their associated cells in the DataGrid
. How can I do this using the MVVM pattern? What other property of the DataGrid
I should bind in order to achieve this?
I have been googling for two hours and so far I got nothing. Any hints would be appreciated.