Hi,
I found that in winforms, there is a function that can set an alternating background color for every odd row by using the IsOdd property of GridRowElement.
void radGridView1_RowFormatting(object sender, RowFormattingEventArgs e)
{
if (e.RowElement.IsOdd)
{
e.RowElement.DrawFill = true;
e.RowElement.BackColor = Color.Red;
}
else
e.RowElement.DrawFill = false;
}
Is it possible to set it in web forms as well? If do so, please give me some sample.
Thanks.
I found that in winforms, there is a function that can set an alternating background color for every odd row by using the IsOdd property of GridRowElement.
void radGridView1_RowFormatting(object sender, RowFormattingEventArgs e)
{
if (e.RowElement.IsOdd)
{
e.RowElement.DrawFill = true;
e.RowElement.BackColor = Color.Red;
}
else
e.RowElement.DrawFill = false;
}
Is it possible to set it in web forms as well? If do so, please give me some sample.
Thanks.