Maimai's .Net Heaven
Monday, January 17, 2011
Populating combbox using a List with two columns
uList = SybizDB.GetUserList
cbUser.DataSource = uList
cbUser.DisplayMember = "Name"
cbUser.ValueMember = "UserNumber"
easy as that.
displaying the name field while selecting the actual value of usernumber field.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment