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

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -