Hi,
I have a WPF Datagrid binded with list of interface objects.
Consider, ClsEmployee class implements I_Employee interface with properties Empl_Id, Empl_Name, Department, Address and City_name.
List<I_Employee> _emplList;
consider, _emplList has 10 items.
dgEmployeeGrid.ItemsSource = _emplList;
Question:
Now, if the user clicks on a button, then i should be able to read the City_name. Based on the City_name, i should be able to set the color (Color can be different for each row) for the rows dynamically through C# code.
Please help me how to do this?
Thanks in advance!