Ejemplo n.º 1
1
 void grid_ElementExportingToDocument(object sender, GridViewElementExportingToDocumentEventArgs e)
 {
     if (e.Element == ExportElement.HeaderCell || e.Element == ExportElement.CommonColumnHeader)
     {
         PatternFill fill = new PatternFill(PatternType.Solid, Colors.Blue, Colors.Transparent);
         (e.VisualParameters as GridViewDocumentVisualExportParameters).Style = new CellSelectionStyle() { Fill = fill };
     }
 }
Ejemplo n.º 2
0
 void grid_ElementExportingToDocument(object sender, GridViewElementExportingToDocumentEventArgs e)
 {
     if (e.Element == ExportElement.HeaderCell || e.Element == ExportElement.CommonColumnHeader)
     {
         PatternFill fill = new PatternFill(PatternType.Solid, Colors.Blue, Colors.Transparent);
         (e.VisualParameters as GridViewDocumentVisualExportParameters).Style = new CellSelectionStyle()
         {
             Fill = fill
         };
     }
 }
 private void HierarchicalExportGridView_ElementExportingToDocument(object sender, GridViewElementExportingToDocumentEventArgs e)
 {
     if (e.Element == ExportElement.HeaderRow)
     {
         (e.VisualParameters as GridViewDocumentVisualExportParameters).Style = new CellSelectionStyle()
         {
             IsBold = true,
             Fill   = new PatternFill(PatternType.Solid, Color.FromArgb(255, 232, 232, 232), Colors.Transparent),
         };
     }
     else if (e.Element == ExportElement.Row)
     {
         (e.VisualParameters as GridViewDocumentVisualExportParameters).Style = new CellSelectionStyle()
         {
             Fill = new PatternFill(PatternType.Solid, Color.FromArgb(255, 255, 142, 142), Colors.Transparent),
         };
     }
 }