Click here to Skip to main content
16,020,628 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to create dynamic rows with dropdown list and the dropdown values differ from each rows. Any one know pls give me your solutions...
Posted
Comments
What rows? GridView Rows? Please explain more.

1 solution

This might be helpfull to you

C#
Dropdownlist.Items.Insert(int index, ListItem(String text, String Value));

for eg:If you want to add a item "select" to your dropdown List (ddl) at index=0
then it codes like

C#
ddl.Items.Insert(0, new ListItem("Select", "0"));
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900