RenderContents - Adding items after rendering...
-
First of all, I want to apologize for stupid title. Don't have any idea how to form it well. Second, I have to work on custom data grid for project. Stored procedure sometimes return one table, and sometime more then one. I've started the project, but I faced the problem on the beginning. I want to be able to add items to that grid like you can add items to ListView in windows forms which will give me more control. (Without Java Script, only ASP.NET) On RenderContents I have a code that render table header and footer so that table can be displayed in DesignMode (WebControl). I've also created a void that takes one argument. String (which is the actual data to be added) and then generate tr's and td's and save them in some variable. That variable is appended in RenderContents void (between header and footer part), but when I run it, table gets rendered, but the generated data is rendered outside the table. The question is, can I achieve this kind of functionality and how?