The usual way to add a new row when an 'add' button is clicked is to
add a record to the underlying datasource and re-bind.
The following articles should give you what you need to know about
working with the dropdowns:
Top Questions About the DataGrid Web Server Control
Cutting Edge: Server-side ASP.NET Data Binding, Part 2: Customizing
the DataGrid Control
>I am trying to allow a user to setup a dynamic number of name value pairs.
>Both NAME field and VALUE field should be dropdown, and all NAME dropdown's
>should containe the same data as well as the VALUE dropdown's. I want the
>user to press an 'Add' button and a new row with two dropdown should be
>How can I do this?
>How can I reference the dropdowns?
MS MVP [ASP.NET][VC/MFC emeritus]
To send email, change 'lotsofspamthroughhere' to 'msn' but please ask all questions in the newsgroups, not via private mail