Hi,
The application we are working on needs to append rows to a table element at runtime. The number of rows that needs to be supported is 500. Also, we need to be able to replace the inline style sheet at runtime. I have questions about the best way to implement this.
My first attempt at the table problem was to simply append to the InnerHTML property of the TABLEElementImpl object. This works, but is not fast enough when the table size increases (probably due to the need to re-parse the entire table''s HTML). This is what the AddMessage method in the attached project does.
My next attempt at the table was to new a TRElementImpl object and set it''s InnerHTML property to be the needed table cells. This TRElementImpl object was then added to the TABLEElementImpl.Children collection. Should this method work?. Can you tell me what I am doing wrong? This method would seem to be the better way to add rows to the table since it would avoid re-parsing the HTML every time. This is what the AddMessage2 method in the attached project does.
I also could not figure out how to get the control to render the new styles after I set the InnerHTML property of the StyleElementImpl object. Is there a method to re-apply the styles for a whole document after I change them?
Thanks,
Toby Lange
POCNewHTML_2798.zip