Combobox Binding

prav_roy

Well-known member
Joined
Sep 10, 2005
Messages
70
Location
Mumbai
Programming Experience
1-3
hi,
in my application i am binding my combobox to datatable, it works fine
but problem is that i want to display "select Name" at index=0
in asp.net i could use something like
cmbbx.items.insert(0,new listitems("Select Name",0))
is there anything like this in windows application..

Thank You
 
Mmm. I doubt that this would be trivial, seeing as the collection cant be modified if it is databound. I would say your best bet would be to write a custom control that inherits from the combobox., even then it's not going to be easy.
 
Back
Top