Completed
Last Updated: 01 Oct 2014 12:58 by ADMIN
ADMIN
Stefan
Created on: 06 May 2014 11:07
Category: GridView
Type: Bug Report
1
FIX. RadGridView - image column cells are not showing alternating row color when printing
Workaround: 
void radGridView1_PrintCellFormatting(object sender, PrintCellFormattingEventArgs e)
{
    if (e.Column is GridViewImageColumn && e.Row is GridViewDataRowInfo)
    {
        e.PrintCell.DrawFill = true;
 
        if (radGridView1.PrintStyle.PrintAlternatingRowColor && e.Row.Index % 2 == 1)
        {
            e.PrintCell.BackColor = radGridView1.PrintStyle.AlternatingRowColor;
        }
        else
        {
            e.PrintCell.BackColor = radGridView1.PrintStyle.CellBackColor;
        }
    }
}
0 comments