示例#1
0
 static void GridPdfExportingEventhandler(object sender, GridPdfExportingEventArgs e)
 {
     if (e.CellType == ExportCellType.HeaderCell)
     {
         e.CellStyle.BackgroundBrush = PdfBrushes.LightSteelBlue;
     }
 }
示例#2
0
 static void GridPdfExportingEventhandler(object sender, GridPdfExportingEventArgs e)
 {
     if (e.CellType == ExportCellType.HeaderCell)
     {
         e.CellStyle.BackgroundBrush = PdfBrushes.LightSteelBlue;
     }
     else if (e.CellType == ExportCellType.GroupCaptionCell)
     {
         e.CellStyle.BackgroundBrush = PdfBrushes.LightGray;
     }
     else if (e.CellType == ExportCellType.GroupSummaryCell)
     {
         e.CellStyle.BackgroundBrush = PdfBrushes.Azure;
     }
     else if (e.CellType == ExportCellType.TableSummaryCell)
     {
         e.CellStyle.BackgroundBrush = PdfBrushes.LightSlateGray;
         e.CellStyle.TextBrush       = PdfBrushes.White;
     }
 }
 void GridPdfExportingEventhandler(object sender, GridPdfExportingEventArgs e) {
     if (e.CellType == ExportCellType.HeaderCell) {
         e.CellStyle.BackgroundBrush = PdfBrushes.LightSteelBlue;
     }
     else if (e.CellType == ExportCellType.GroupCaptionCell) {
         e.CellStyle.BackgroundBrush = PdfBrushes.LightGray;
     }
     else if (e.CellType == ExportCellType.GroupSummaryCell) {
         e.CellStyle.BackgroundBrush = PdfBrushes.Azure;
     }
     else if (e.CellType == ExportCellType.TableSummaryCell) {
         e.CellStyle.BackgroundBrush = PdfBrushes.LightSlateGray;
         e.CellStyle.TextBrush = PdfBrushes.White;
     }
 }