Hello,
I have a simple application containing a RadGridView with the ItemsSource binded to an ObservableCollection of elements. I use the RowLoaded event to set the background of the cells and it works fine.
Here is the code i use in the RowLoaded:
string colorStr = "#5cfc56";
SolidColorBrush b = new SolidColorBrush();
b.Color = (Color)ColorConverter.ConvertFromString(colorStr);
var cell= (from a in e.Row.Cells where a.Column.UniqueName == "a" select a).FirstOrDefault();
cell.Background = b;
cell.ToolTip = "aaaas";
The problem is that when i refresh the ObservableCollection with new elements the grid does not apply the background color to the rows in spite of launching the RowLoadedEvent however the Tooltip of the cell works.
Is there something i'm doing wrong here?
Tanks.
I have a simple application containing a RadGridView with the ItemsSource binded to an ObservableCollection of elements. I use the RowLoaded event to set the background of the cells and it works fine.
Here is the code i use in the RowLoaded:
string colorStr = "#5cfc56";
SolidColorBrush b = new SolidColorBrush();
b.Color = (Color)ColorConverter.ConvertFromString(colorStr);
var cell= (from a in e.Row.Cells where a.Column.UniqueName == "a" select a).FirstOrDefault();
cell.Background = b;
cell.ToolTip = "aaaas";
The problem is that when i refresh the ObservableCollection with new elements the grid does not apply the background color to the rows in spite of launching the RowLoadedEvent however the Tooltip of the cell works.
Is there something i'm doing wrong here?
Tanks.