Esempio n. 1
0
        public Row AddDetailRow()
        {
            Element rowElement = new Element("tr");

            Element tbody = TableElement.GetFirstChildElement("tbody");

            if (tbody != null)
            {
                tbody.AppendChild(rowElement);
            }
            else
            {
                TableElement.AppendChild(rowElement);
            }

            for (int i = 0; i < ColumnCount; i++)
            {
                rowElement.AppendChild(new Element("td"));
            }

            return(new Row(rowElement));
        }