Hi all,
I'm dynamically creating a table based upon user feedback, and I need
to databind some of the items.
I've not had much success looking for examples on this through google,
but I've found I can access controls placed into the table as such:
((DropDownList)tblLayout.Rows[0].Cells[1].Controls[0]).DataSource =
_ds.Tables["hours"];
This works. But it seems to me to be a lot of code and it is very
obscure. Is there a simpler way to access controls in a dynamic table?
The other option I have is to mix html and code together <% %> and
only show parts of the table needed. But once again, I would rather not
mix code and html if I can avoid it (although it would be much clearer
than the first example).
Any help would be appreciated.