private
void
RadGridView1_RowFormatting(
object
sender, Telerik.WinControls.UI.RowFormattingEventArgs e)
{
var index = radGridView1.ChildRows.Where(x => x.IsVisible).ToList().IndexOf(e.RowElement.RowInfo);
if
(index % 2 == 0 && !e.RowElement.IsCurrent)
{
e.RowElement.DrawFill =
true
;
e.RowElement.BackColor = Color.Red;
}
else
{
e.RowElement.ResetValue(RadItem.BackColorProperty, ValueResetFlags.Local);
e.RowElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);
}
}