Hi there,
i am creating a PdfLightTable with a external DataTable as DataSource.
Now i want to edit the Format of the TableCells like
lightTable.Rows[1].Cells[2].Format = @"0.00 \%";
...or something like this.
Can you give me a suggestion?
I can't get the Value of the Cells to format it manually.
The PdfRow has only a Values-Property which always seems null.
At which time is it not null?
And what Type of objects are the Values in the Array?
Is there an alternative to the PdfLightTable?
Greetzs Frank
DG
Divya G
Syncfusion Team
December 16, 2009 06:16 AM UTC
Hi Frank,
Thank you for your interest in Syncfusion products.
We can use PdfGrid instead PdfLightTable to format the cell.
Kindly refer the below code snippet to format the cell.
(C#)
PdfGrid grid = new PdfGrid();
grid.DataSource = GetData();
foreach (PdfGridRow row in grid.Rows)
{
foreach (PdfGridCell cell in row.Cells)
{
cell.Value = int.Parse(cell.Value.ToString()).ToString(@"0.00 \%");
}
}
grid.Draw(page, PointF.Empty);
Regards,
Divya.G
FW
Frank Weller
January 7, 2010 11:31 AM UTC
Hi Divya G,
thank you for your Answer.
We haven't noticed, that there is an update of your Software which supports the PdfGrid!
Thats a big help for us developing large PdfDocs!
Great work.
Thanks a lot
DG
Divya G
Syncfusion Team
January 8, 2010 08:46 AM UTC
Hi Frank,
Thank you for your update.
We are glad to hear that the reported problem has been solved.
Please let me know if you have any other queries.
Regards,
Divya.G