I have dropdownlist,which get filled from table1.That table1 has Zero value.While filling the dropdown,want to add “–select Name–“.But at what index I have to add the select Name.I can not add it at -1 position.
I have dropdownlist,which get filled from table1.That table1 has Zero value.While filling the dropdown,want
Share
You could insert the ‘–Select Name–‘ at index 0 but with value -1, and then you can check the value -1 later to identify your ‘–Select Name–‘ item.