I am evaluating the Telerik winform controls, and have special interest in the GridView. In evaluating, I am using the RowFormatting event to change the font of the row on all even rows (to look at performance and usability). I have a very simple datasource with 1000 records. I have to admit that so far I have been impressed with the ease of handling when it comes to the grid and it's properties.
Then I came upon the RowFormatting event. Works awesome!... until I have to scroll. Then it goes haywire and ends up applying the formatting to every row. How do I fix this... or how do I apply my formatting correctly? My code is very simple:
Then I came upon the RowFormatting event. Works awesome!... until I have to scroll. Then it goes haywire and ends up applying the formatting to every row. How do I fix this... or how do I apply my formatting correctly? My code is very simple:
private
void
_billGrid_RowFormatting(
object
sender, Telerik.WinControls.UI.RowFormattingEventArgs e)
{
if
(e.RowElement.RowInfo.Index % 2 == 0)
{
e.RowElement.Font =
new
Font(
"Tahoma"
, 14, FontStyle.Bold);
}
}