TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Aston
NA
10
0
How to I access the ValueMember property of a combobox.
Nov 6 2008 2:13 AM
Hello all, I have an array which passes its values to a combo box.
availInv = facade.GetAvailableInventory(reqdt);
this.cbo_InventoryItem.DataSource = availInv; //pass array as datasource
this.cbo_InventoryItem.DisplayMember = "ItemName";
this.cbo_InventoryItem.ValueMember = "InvId";
Questions
1. How do I get the "InvId" value that is passed to the value Member property from this combo box.
2. Secondly, array has more fields, so how do I show all those fields in the combo box. i.e ItemName, Description, Cost.
Regards
Aston.
Reply
Answers (
1
)
Some interview questions
Close Parent Form & open child form