BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
//Create a PdfLightTable.
PdfLightTable pdfLightTable = new PdfLightTable();
//Set the header value
pdfLightTable.Style.ShowHeader = true;
//Set the Data source as direct.
pdfLightTable.DataSourceType = PdfLightTableDataSourceType.TableDirect;
pdfLightTable.AllowRowBreakAcrossPages = true;
//Create columns.
pdfLightTable.Columns.Add(new PdfColumn("Name"));
pdfLightTable.Columns.Add(new PdfColumn("Age"));
pdfLightTable.Columns.Add(new PdfColumn("Class"));
//Add rows.
pdfLightTable.Rows.Add(new object[] { "Tet column", "Maxim", "III" });
//Draw the PdfLightTable.
pdfLightTable.Draw(tablePage, PointF.Empty);
|
Thank you, Bhuvaneswari.