1 Replies - 355 Views - Last Post: 10 July 2014 - 07:04 AM Rate Topic: -----

#1 stasis  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 31-August 10

Multiple Value Member

Posted 09 July 2014 - 09:43 PM

Any idea on how to get a multiple value member in a combobox?

sample code

cbo.Datasource=dt
cbo.DisplayMember="NAME"
cbo.ValueMember="CODE_1"




in my table i have 3 primary key which is CODE_1 , CODE_2, CODE_3

obviously ,base on the code above if you do cbo.SelectedValue
the result would be the CODE_1 that has been selected..
now the problem is . I want also to get the CODE_2 and CODE_3

anyone has an idea? thanks in advance

This post has been edited by macosxnerd101: 09 July 2014 - 09:47 PM
Reason for edit:: Fixed code tags


Is This A Good Question/Topic? 0
  • +

Replies To: Multiple Value Member

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9487
  • View blog
  • Posts: 35,774
  • Joined: 12-June 08

Re: Multiple Value Member

Posted 10 July 2014 - 07:04 AM

Simply you don't. Only one column per member. In theory you do a work around and see about combining keys into one pseudo column.. you know.. mush them all together and then separate them as needed.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1