Hi,
I want to bind background colors and foreground colors to all rows coming from my database.
Please note that each row will have its own foreground and backgroundcolor according to database.
i tried using
private void radTreeListView_RowLoaded(object sender, RowLoadedEventArgs e)
{
var row = e.Row as TreeListViewRow;
row.Background = new SolidColorBrush(color); // color is coming from database through some logic
}
This works but sometimes fails.
How can i bind background and foreground color of every row in treelistview ?
I want to bind background colors and foreground colors to all rows coming from my database.
Please note that each row will have its own foreground and backgroundcolor according to database.
i tried using
private void radTreeListView_RowLoaded(object sender, RowLoadedEventArgs e)
{
var row = e.Row as TreeListViewRow;
row.Background = new SolidColorBrush(color); // color is coming from database through some logic
}
This works but sometimes fails.
How can i bind background and foreground color of every row in treelistview ?