Example #1
0
 private void radGridView1_PrintCellFormatting(object sender, PrintCellFormattingEventArgs e)
 {
     if (e.Column != null && e.Column.Name == "Notes" && e.Row is GridViewDataRowInfo)
     {
         e.PrintCell.Font = this.italicFont;
     }
 }
Example #2
0
 void radGridView1_PrintCellFormatting(object sender, PrintCellFormattingEventArgs e)
 {
     if (e.Row.Cells[1].Value != null)
     {
         int res;
         int.TryParse(e.Row.Cells[1].Value.ToString(), out res);
         if (e.Column != null && res != 0 && e.Row is GridViewDataRowInfo)
         {
             e.PrintCell.BackColor = Color.LightSeaGreen;
         }
         if (e.Column != null && e.Row.Cells[2].Value.ToString().Contains("TOTAL") && e.Row is GridViewDataRowInfo)
         {
             e.PrintCell.BackColor = Color.Aquamarine;
             e.PrintCell.Font = italicFont;
         }
     }
 }