I am unable to add a row to a HTML table dynamically. I am using IHtmlDocument2
to create tr
and td
elements and IHtmlElement
to set attributes and IHtmlDomNode
to add created node to the document hierarchy.
Please anyone help me to solve the above problem.
I am traversing through the document when I get the tr
tag I have created the tr
element using CreateElement
, then I use InsertBefore
to insert it into the document but it's not working.
I've tried for one week but didn't get anything working.