We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Editing values of LightTableCells programmaticly

Thread ID:





91937 Dec 9,2009 03:37 PM UTC Jan 8,2010 08:46 AM UTC ASP.NET Web Forms (Classic) 3
Tags: PDF
Frank Weller
Asked On December 9, 2009 03:37 PM UTC

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

Divya G [Syncfusion]
Replied On 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.
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);


Frank Weller
Replied On 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

Divya G [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon