Hi Syncfusion-Members,
we have a problem with ColumnSpan in the headers.
The ColumnSpan and the BackgroundBrush doesn't work in headers. In a normal row works it fine. (look at the attachment)
(We are use the version 7.303.0.20)
What can I do?
Many thanks,
Thorsten
Example code:
//Create a new pdf document
PdfDocument doc = new PdfDocument();
//Adds a pdf page.
PdfPage page = doc.Pages.Add();
//Create a new pdf grid.
PdfGrid grid = new PdfGrid();
grid.Style.BackgroundBrush =PdfBrushes.LightBlue;
grid.Columns.Add(5);
PdfGridRow head = grid.Headers.Add(1)[0];
head.Cells[0].Value = "Job/Extra:";
head.Cells[1].ColumnSpan = 3;
head.Cells[1].Value = "Cell2 (00.06.251): Blue Mountail Hospital";
head.Cells[4].Value = "Hello";
PdfGridRow row = grid.Rows.Add();
row = grid.Rows.Add();
row.Cells[0].Value = "Job/Extra1:";
row.Cells[1].Value = "Job/Extra2:";
row.Cells[2].Value = "Job/Extra3:";
row.Cells[3].Value = "Job/Extra4:";
row.Cells[4].Value = "Job/Extra5:";
//Draws a grid
grid.Draw(page.Graphics, new PointF(10, 10));
//Saves the document
doc.Save("Sample.pdf");
doc.Close(true);
header_9bc7e3c6.zip