Adding TableRow Object to Table

Discussion in 'ASP .Net Building Controls' started by vishalbahl@gmail.com, May 3, 2007.

  1. Guest

    Hi,

    I have a TableRow object which contains some cells and i want to add
    this TableRow object into another Table n number of times based on the
    count i receive from DB.

    I am doing something like this

    oRow object contains all the cells that needs to be added oTable

    For iLoop = 0 to dtTable.rows.count - 1
    Dim tmpRow as New TableRow

    tmpRow = oRow
    oTable.rows.add(tmpRow)
    Next

    The above code doesn't produce any error but its adding only one row
    and that is last row.

    Can someone help me in this one.

    Regards,
    Vishal
    , May 3, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. frank
    Replies:
    0
    Views:
    327
    frank
    Jul 11, 2003
  2. Steve - DND

    Click Event for TableRow?

    Steve - DND, Jul 31, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    508
    Steve - DND
    Jul 31, 2003
  3. George Durzi

    TableRow/TableCell Serverside Q

    George Durzi, Nov 5, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    709
    Nicole Calinoiu
    Nov 5, 2003
  4. Coleen

    Span in an ASP TableRow

    Coleen, Jan 26, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    439
    coleenholley
    Jan 26, 2004
  5. Harry

    table in tablerow

    Harry, May 7, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    372
    Kevin Spencer
    May 7, 2004
Loading...

Share This Page