|
PdfGridCellStyle cellStyle = new PdfGridCellStyle();
cellStyle.Borders.All = PdfPens.White;
cellStyle.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 6);
cellStyle.TextBrush = PdfBrushes.Black;
pdfGrid.Rows[0].ApplyStyle(cellStyle);
//setting clone of the cell style to individual cell
pdfGrid.Rows[0].Cells[0].Style = cellStyle.Clone() as PdfGridCellStyle;
pdfGrid.Rows[0].Cells[0].Style.StringFormat = new PdfStringFormat();
pdfGrid.Rows[0].Cells[0].Style.StringFormat.Alignment = PdfTextAlignment.Left;
//setting clone of the cell style to individual cell
pdfGrid.Rows[0].Cells[1].Style = cellStyle.Clone() as PdfGridCellStyle;
pdfGrid.Rows[0].Cells[1].Style.StringFormat = new PdfStringFormat();
pdfGrid.Rows[0].Cells[1].Style.StringFormat.Alignment = PdfTextAlignment.Right;
|