Forum Moderators: open

Message Too Old, No Replies

Dynamic Tables

Dynamic Tables

         

mavrick

10:31 am on Aug 11, 2004 (gmt 0)

10+ Year Member



Hi Guys

Need some help populating cells in a dynamic table.

Here is the thing...

i am populating a table (asp.net) and need to populate the cell next to the cell that i have just populated

e.g.

<table>
<tr>
<td>info</td><td>info2<td>
</tr>
</table>

I am trying not to use a DataGrid.

thanks

TheNige

6:35 pm on Aug 11, 2004 (gmt 0)

10+ Year Member



try using a repeater or datalist instead.

RainMaker

8:38 pm on Aug 12, 2004 (gmt 0)

10+ Year Member



Well you don't need to just stick with a control. there are some programmatic ways of being able to do some dynamics such as using the HTMLTable, HtmlTableRow, HtmlTableCell....and you could use the ASP.NET Table object as well and then just use the Table, TableRow, TableCell objects to dynamically fill the data. Typically the menthods you would use is Table.conrols.add(TableRow)
and TableRows.Controls.add(TableCell) and you can use the TableCell.Attributes["akey"] = "akeyvalue" property to do some cross browser capabilities. Remember that the ASP.NET table just renders as a regular table...you can just do some server side stuff with it...Maybe that can open some doors for you?