HI
I am using combo box, if i manually add the combo box i am not gettin the valuemember of item.If i access the value it is giving object reference not set.
I need the value property as i am storing id in that.
can any body tell the solution for it.
I need to add manually because i want to add extra items to the which i retrieved from database.
Thanks & Regards
Bhargavi

Regarding combo box value property in .net 2.0
Nikolay Shustov
Hi
Its means that you are adding items to the Items collection of the ComboBox. If you set the datasource property then you can get the value field and text fields values from these properties, but when you add items to Item Collection then you can get your item from SelectedItem property. Get the selected Item and cast it to your orignal item you have placed in item collection.