static void GridCellPdfExportingEventhandler(object sender, GridCellPdfExportingEventArgs e) { if ((e.ColumnName == "OrderID" || e.ColumnName == "EmployeeID" || e.ColumnName == "OrderDate" || e.ColumnName == "Freight") && e.CellType == ExportCellType.RecordCell) { e.PdfGridCell.Style = cellstyle; } }
static void GridCellPdfExportingEventhandler(object sender, GridCellPdfExportingEventArgs e) { if ((e.ColumnName == "OrderID" || e.ColumnName == "EmployeeID" || e.ColumnName == "OrderDate" || e.ColumnName == "Freight") && e.CellType == ExportCellType.RecordCell) { e.PdfGridCell.Style = cellstyle; } e.PdfGridCell.Style.Borders.All = new PdfPen(PdfBrushes.DarkGray, 1.0f); }
void GridCellPdfExportingEventhandler(object sender, GridCellPdfExportingEventArgs e) { if ((e.ColumnName == "EmployeeID" || e.ColumnName == "HireDate" || e.ColumnName == "BirthDate" || e.ColumnName == "Salary" || e.ColumnName == "SickLeaveHours") && e.CellType == ExportCellType.RecordCell) { e.PdfGridCell.Style = cellstyle; } e.PdfGridCell.Style.Borders.All = new PdfPen(PdfBrushes.DarkGray, 1.0f); }
void GridCellPdfExportingEventhandler(object sender, GridCellPdfExportingEventArgs e) { if ((e.ColumnName == "EmployeeID" || e.ColumnName == "HireDate" || e.ColumnName == "BirthDate" || e.ColumnName == "Salary" || e.ColumnName == "SickLeaveHours") && e.CellType == ExportCellType.RecordCell) { e.PdfGridCell.Style = cellstyle; } }