This question is locked. New answers and comments are not allowed.
Hi Telerik,
I have this code in MyGrid RowLoaded event:
if (e.Row Is GridViewRow && !(e.Row Is GridViewRow))
{
Employee employee = e.DataElement As Employee;
If ( employee.Name == "Michele")
{
((GridViewRow)e.Row.BackGround = New SolidColorBrush(Colors.Red);
((GridViewRow)e.Row.Foreground = New SolidColorBrush(Colors.White);
}
}
The BackGround Row's property work, but Foreground property don't....... Why?
How Can I do this? And How Can I customize color's cells in the Grid's RowLoaded Event?
Thank's
Michele
I have this code in MyGrid RowLoaded event:
if (e.Row Is GridViewRow && !(e.Row Is GridViewRow))
{
Employee employee = e.DataElement As Employee;
If ( employee.Name == "Michele")
{
((GridViewRow)e.Row.BackGround = New SolidColorBrush(Colors.Red);
((GridViewRow)e.Row.Foreground = New SolidColorBrush(Colors.White);
}
}
The BackGround Row's property work, but Foreground property don't....... Why?
How Can I do this? And How Can I customize color's cells in the Grid's RowLoaded Event?
Thank's
Michele