c# - How Can I count Html cell' in code behind? -
i'm using method bind data database fill in pdfptable , use method add data cell
dfptable table = new pdfptable(3); pdfpcell cell = new pdfpcell(new paragraph("header colspan 3")); cell.backgroundcolor = color.gray; cell.colspan = 3; cell.horizontalalignment = element.align_center; cell.border = pdfborderarray.boolean; cell.bordercolor = color.red; table.addcell(cell);
how can count html cell's in code behind pdfptable using asp.net
try this:
var noofcells = table.rows.select(r => r.getcells()).count();
Comments
Post a Comment