PdfGrid childPdfGrid = new PdfGrid();
childPdfGrid.Columns.Add(5);
for (int i = 0; i < 5; i++)
{
PdfGridRow row = childPdfGrid.Rows.Add();
for (int j = 0; j < 5; j++)
{
row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);
}
}
// Set the value as another PdfGrid in a cell.
parentGrid.Rows[0].Cells[1].Value = childPdfGrid;
If you want to print the PdfGrid one after another please refer the below link for more reference.
http://www.syncfusion.com/kb/2690/how-to-calculate-pdfgrid-table-height
Please let us know if you need any further assistance in this.
Regards,
Karthikeyan.C
Hi Jb,
Thank you for your interest in Syncfuions Products.
We do have support for nested PdfGrid in Essential PDF, please find the below code snippet.
PdfGrid childPdfGrid = new PdfGrid();
childPdfGrid.Columns.Add(5);
for (int i = 0; i < 5; i++)
{
PdfGridRow row = childPdfGrid.Rows.Add();
for (int j = 0; j < 5; j++)
{
row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);
}
}
// Set the value as another PdfGrid in a cell.
parentGrid.Rows[0].Cells[1].Value = childPdfGrid;
If you want to print the PdfGrid one after another please refer the below link for more reference.
http://www.syncfusion.com/kb/2690/how-to-calculate-pdfgrid-table-height
Please let us know if you need any further assistance in this.
Regards,
Karthikeyan.C
PdfGrid childPdfGrid = new PdfGrid();
childPdfGrid.Columns.Add(5);
for (int i = 0; i < 5; i++)
{
PdfGridRow row = childPdfGrid.Rows.Add();
for (int j = 0; j < 5; j++)
{
row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);
}
}
parentRow.Cells[0].Value = childPdfGrid;
results in ` Can't draw one or more inner grids, no enough space available for it.`
Basically in the cell i want to show 2 rows. Row 0 spans 4 columns. Row 1. 4 columns and each column has a value
<table class="tg">
<tr>
<th class="tg-031e" colspan="3">Main</th>
</tr>
<tr>
<td class="tg-031e">sub1</td>
<td class="tg-031e">sub2</td>
<td class="tg-031e">sub3</td>
</tr>
</table>
Hi Jb,
Thank you for your interest in Syncfuions Products.
We do have support for nested PdfGrid in Essential PDF, please find the below code snippet.
PdfGrid childPdfGrid = new PdfGrid();
childPdfGrid.Columns.Add(5);
for (int i = 0; i < 5; i++)
{
PdfGridRow row = childPdfGrid.Rows.Add();
for (int j = 0; j < 5; j++)
{
row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);
}
}
// Set the value as another PdfGrid in a cell.
parentGrid.Rows[0].Cells[1].Value = childPdfGrid;
If you want to print the PdfGrid one after another please refer the below link for more reference.
http://www.syncfusion.com/kb/2690/how-to-calculate-pdfgrid-table-height
Please let us know if you need any further assistance in this.
Regards,
Karthikeyan.C
If i do the following using your example as a samplePdfGrid parentPdfGrid = new PdfGrid();PdfGridRow parentRow = parentPdfGrid.Rows.Add();PdfGrid childPdfGrid = new PdfGrid();
childPdfGrid.Columns.Add(5);
for (int i = 0; i < 5; i++)
{
PdfGridRow row = childPdfGrid.Rows.Add();
for (int j = 0; j < 5; j++)
{
row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);
}
}
parentRow.Cells[0].Value = childPdfGrid;
results in ` Can't draw one or more inner grids, no enough space available for it.`
Basically in the cell i want to show 2 rows. Row 0 spans 4 columns. Row 1. 4 columns and each column has a value
Pasting HTML equivalent of what I want in the cell below
<table class="tg"> <tr> <th class="tg-031e" colspan="3">Main</th> </tr> <tr> <td class="tg-031e">sub1</td> <td class="tg-031e">sub2</td> <td class="tg-031e">sub3</td> </tr> </table>
Hi Jb,
Thank you for your interest in Syncfuions Products.
We do have support for nested PdfGrid in Essential PDF, please find the below code snippet.
PdfGrid childPdfGrid = new PdfGrid();
childPdfGrid.Columns.Add(5);
for (int i = 0; i < 5; i++)
{
PdfGridRow row = childPdfGrid.Rows.Add();
for (int j = 0; j < 5; j++)
{
row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);
}
}
// Set the value as another PdfGrid in a cell.
parentGrid.Rows[0].Cells[1].Value = childPdfGrid;
If you want to print the PdfGrid one after another please refer the below link for more reference.
http://www.syncfusion.com/kb/2690/how-to-calculate-pdfgrid-table-height
Please let us know if you need any further assistance in this.
Regards,
Karthikeyan.C
If i do the following using your example as a samplePdfGrid parentPdfGrid = new PdfGrid();PdfGridRow parentRow = parentPdfGrid.Rows.Add();PdfGrid childPdfGrid = new PdfGrid();
childPdfGrid.Columns.Add(5);
for (int i = 0; i < 5; i++)
{
PdfGridRow row = childPdfGrid.Rows.Add();
for (int j = 0; j < 5; j++)
{
row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);
}
}
parentRow.Cells[0].Value = childPdfGrid;
results in ` Can't draw one or more inner grids, no enough space available for it.`
Basically in the cell i want to show 2 rows. Row 0 spans 4 columns. Row 1. 4 columns and each column has a value
Pasting HTML equivalent of what I want in the cell below
<table class="tg"> <tr> <th class="tg-031e" colspan="3">Main</th> </tr> <tr> <td class="tg-031e">sub1</td> <td class="tg-031e">sub2</td> <td class="tg-031e">sub3</td> </tr> </table>
This pdfgrid has many columns, the html table sample is what i want inside a gridrow cell.
Hi JB,
Thank you for your update.
We can achieve your requirement by using Column Span, I have attached a simple sample similar to your requirement. Could you please refer this and let us know is it helpful.
http://www.syncfusion.com/downloads/support/forum/118719/PdfGridSample698096172.zip
Please let us know if you need any further assistance.
Regards,
Karthikeyan.C
Hi Jb,
Thank you for your interest in Syncfuions Products.
We do have support for nested PdfGrid in Essential PDF, please find the below code snippet.
PdfGrid childPdfGrid = new PdfGrid();
childPdfGrid.Columns.Add(5);
for (int i = 0; i < 5; i++)
{
PdfGridRow row = childPdfGrid.Rows.Add();
for (int j = 0; j < 5; j++)
{
row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);
}
}
// Set the value as another PdfGrid in a cell.
parentGrid.Rows[0].Cells[1].Value = childPdfGrid;
If you want to print the PdfGrid one after another please refer the below link for more reference.
http://www.syncfusion.com/kb/2690/how-to-calculate-pdfgrid-table-height
Please let us know if you need any further assistance in this.
Regards,
Karthikeyan.C
If i do the following using your example as a samplePdfGrid parentPdfGrid = new PdfGrid();PdfGridRow parentRow = parentPdfGrid.Rows.Add();PdfGrid childPdfGrid = new PdfGrid();
childPdfGrid.Columns.Add(5);
for (int i = 0; i < 5; i++)
{
PdfGridRow row = childPdfGrid.Rows.Add();
for (int j = 0; j < 5; j++)
{
row.Cells[j].Value = String.Format("Cell [{0} {1}]", j, i);
}
}
parentRow.Cells[0].Value = childPdfGrid;
results in ` Can't draw one or more inner grids, no enough space available for it.`
Basically in the cell i want to show 2 rows. Row 0 spans 4 columns. Row 1. 4 columns and each column has a value
Pasting HTML equivalent of what I want in the cell below
<table class="tg"> <tr> <th class="tg-031e" colspan="3">Main</th> </tr> <tr> <td class="tg-031e">sub1</td> <td class="tg-031e">sub2</td> <td class="tg-031e">sub3</td> </tr> </table>
This pdfgrid has many columns, the html table sample is what i want inside a gridrow cell.