This question is locked. New answers and comments are not allowed.
Hello, i have a RadGridView called with that code:
and i need to change foreground color of each single row.
As i seen in a thread in that forum, i'm expecting that giving "Foreground" property to DataCellsPresenter in GridViewRow Template will be good for me.
Don't know why, it's not working at the moment.
Can you give me some help? I also need to change foreground color in mouseover, but that will be possible only with that property working (i think).
Thanks.
Diego
<telerik:RadGridView x:Name="grid" RowIndicatorVisibility="Collapsed" RowDetailsVisibilityMode="Collapsed" IsScrolling="False" ShowGroupPanel="False" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible" Width="600" Height="600" HorizontalAlignment="Left" Margin="10,0,-7,0"> <telerikGrid:RadGridView.Columns> <telerikGrid:GridViewToggleRowDetailsColumn /> <telerikGrid:GridViewDataColumn x:Name="ResourceUsernameColumn" Width="Auto" SortingState="Ascending" TextWrapping="Wrap" Header="User"/> <telerikGrid:GridViewDataColumn x:Name="ResourceEnabledColumn" Width="Auto" SortingState="Ascending" TextWrapping="Wrap" Header="Status"/> </telerikGrid:RadGridView.Columns> <telerikGrid:RadGridView.RowDetailsTemplate> <DataTemplate> <Grid Height="300"> <TextBlock Foreground="Black">details text</TextBlock> <MN_Command_Theme:IconAbort/> </Grid> </DataTemplate> </telerikGrid:RadGridView.RowDetailsTemplate> </telerik:RadGridView>and i need to change foreground color of each single row.
As i seen in a thread in that forum, i'm expecting that giving "Foreground" property to DataCellsPresenter in GridViewRow Template will be good for me.
Don't know why, it's not working at the moment.
<grid:DataCellsPresenter Grid.Column="3" Foreground="Red" telerik:StyleManager.Theme="{StaticResource Theme}" x:Name="PART_DataCellsPresenter" />Can you give me some help? I also need to change foreground color in mouseover, but that will be possible only with that property working (i think).
Thanks.
Diego