Hi, how can I change the style on alternate row? I see another post with same question, and you told to do it:
private void radGridView1_RowFormatting(object sender, RowFormattingEventArgs e)
{
if (e.RowElement.IsOdd)
{
if (!e.RowElement.IsCurrent)
{
e.RowElement.BackColor = Color.Beige;
}
else
{
e.RowElement.BackColor = Color.LightBlue;
}
}
}
but when you scroll, you loose the style.
private void radGridView1_RowFormatting(object sender, RowFormattingEventArgs e)
{
if (e.RowElement.IsOdd)
{
if (!e.RowElement.IsCurrent)
{
e.RowElement.BackColor = Color.Beige;
}
else
{
e.RowElement.BackColor = Color.LightBlue;
}
}
}
but when you scroll, you loose the style.