Hi Steve,
Thank you for your interest in Essential PDF.
Nested TableWe can draw the table inside to another table by subscribing BeginCellLayout event handler.
Kindly refer the below code snippet to render the nested table,
// Event handler
table.BeginCellLayout +=new BeginCellLayoutEventHandler(table_BeginCellLayout);
void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args)
{
if (args.CellIndex == 2 && args.RowIndex == 1)
{
DataTable dt = new DataTable();
dt.Columns.Add("Column 1");
dt.Columns.Add("Column 2");
dt.Rows.Add(new string[] { "Cell 1.1", "Cell 1.2" });
dt.Rows.Add(new string[] { "Cell 2.1", "Cell 2.2" });
PdfLightTable t1 = new PdfLightTable();
t1.DataSourceType = PdfLightTableDataSourceType.External;
t1.DataSource = dt;
t1.Draw(args.Graphics, args.Bounds.Location,args.Bounds.Width);
}
}
Please do find the sample from the below specified location and let me know if this helps,
http://files.syncfusion.com/samples/pdf.windows/PDF_F82540.zipRegards,
Suba