Dropdown
Is there any difference between DropDownList.Items.Add and DropDownList.Items.Insert method?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjeeb LenkaPosted Aug 15, 2013, 12:05 PM
DropDownList.Items.Insert method allows you to specify the index of the item within the DropDownList where you want to insert the ListItem.
Abhineet SrivastavaPosted Aug 15, 2013, 12:20 PM
Thanks Sanjeeb
Sanjeeb LenkaPosted Aug 15, 2013, 12:12 PM
here you have mandatory to give the index where you want to add.
in this you can give the index position where you want to add the item.
here i am adding 'select' in index position 0
Abhineet SrivastavaPosted Aug 15, 2013, 12:09 PM
Well,In the case of DropDownList.Items.Insert where will item add by default?