Hi, I have a project where I synchronize multiple controls. The RadGridView control is bound to an observable collection of data. Whenever I need to select multiple items, I execute
The grid does what it's suppose to do, however, I need to customize all selected rows to have blue font color. At first I tried using
However I quickly learned that this will only work for rows currently visible (based on some other threads I have read). The item itself does not have any kind of "IsSelected" property, so customizing styles probably will not work. I am looking for a c#-based code solution to find all necessary rows and change the Foreground property.
Thanks in advance
grid.UnselectAll();
grid.SelectedItems.Add(element);
.... do this for all selected elements .....
The grid does what it's suppose to do, however, I need to customize all selected rows to have blue font color. At first I tried using
grid.ItemContainerGenerator.ContainerFromItem(item) as GridViewRow
However I quickly learned that this will only work for rows currently visible (based on some other threads I have read). The item itself does not have any kind of "IsSelected" property, so customizing styles probably will not work. I am looking for a c#-based code solution to find all necessary rows and change the Foreground property.
Thanks in advance