I have an Item class which has 2 properties, "Value" and "IsSelected". The "Value" format is something like "Column1=Value1::Column2=Value2::Column3=Value3", and "IsSelected" is a boolean value.
I have a list of this Item class, which I need to bind to a datagrid. So, basically I need to split the "Value" string and construct a DataTable to bind it to the datagrid. Then, if the Item's "IsSelected" is true, I will need to color the row with a color.
The problem I'm having is, I do not know how can I present my data in a datagrid while checking the "IsSelected" property to set the row color. How can I bind my data such that each datarow is binding to each Item class?
Thanks!