Hello all.
I need to change value in table cell.
How to find table or cell (no element id assigned)?
Thanks, Dale.
How to change value in table cell?
Re: How to change value in table cell?
Support · Mar 19, 2007Hello Dale,
You can change the text for cell of the table by referencing it with the index value for the cell. For e.g.
row1.Cells[i].Add("Item 1");
Thanks,
ceTe Software Support Team
Re: How to change value in table cell?
Forum member · Dec 24, 2008when I am trying to use Row1.cell(0).Add("Item") I get an error of
"Add is not a member of ceTe.DynamicPDF.PageElements.Cell" is there something else that is needed. I am running version 5 and have imported ceTe.DynamicPDF.PageElements to my web page.
Re: How to change value in table cell?
Support · Dec 24, 2008Hello,
The Add method is available in the CellList to add a cell to the cell list of the row.
row1.Cells.Add("cell text");
The Cell do not have the Add method. This is the reason for the error you are getting.
If you want change the cell text or to assign the cell text you will have to use the Text property of the Cell object.
row1.Cells[i].Text = "cell text";
If you have the Cell object then,
cellObj.Text = "cell text";
Thanks,
ceTe Software Support Team.
Re: How to change value in table cell?
Forum member · Dec 24, 2008yes you can but you have to add the cell first so you actually have to deal with the same cell twice.