repeat textboxes

eramgarden

Contributor
Joined
Mar 8, 2004
Messages
579
I have 2 ddls, 3 textboxes. All in one row. Now, if users click for example, 'Add new row', i want to display another row..under the first row... 2 ddls and 3 textboxes ..

There could be like 30 rows like that..so I dont want to create them , make them invisible,then display them...

any other way to do this?
 
You can put these controls in a datagrid template columns and bind this datagrid to a datatable. When ever you want to add another row, add a new datarow to the datatable and rebind it to the datagrid
 
i created them dynamically..

dim txtNewTextBox as new Textbox

whenever the user clicks.

Have to try your way and see that works..

thanks

Salam
 
Back
Top