Vishal Vishal - 4 months ago 7
Vb.net Question

Insert a row between two existing rows in a dynamically created column in asp.net

I am creating a table dynamically.

Now I add some data to the table from Database.

On Every Row of the table I create a button.

Upto this it works fine.

Now when user clicks on that button I want to add a new row to the table just below the button was clicked. I mean I want to insert a new row between the existing rows.

Any Ideas?

Answer
tbl.rows.addAt(Position)

Here Positoion is the variable holding the value where to insert the new row.