Click here to Skip to main content
15,900,110 members
Home / Discussions / Database
   

Database

 
AnswerRe: A simple query Pin
Mike Ellison20-Feb-06 18:21
Mike Ellison20-Feb-06 18:21 
Questiondistinct columns? Pin
nixter99920-Feb-06 3:42
nixter99920-Feb-06 3:42 
AnswerRe: distinct columns? Pin
Chris Meech20-Feb-06 4:02
Chris Meech20-Feb-06 4:02 
GeneralRe: distinct columns? Pin
nixter99920-Feb-06 4:15
nixter99920-Feb-06 4:15 
GeneralRe: distinct columns? Pin
Joshua Lunsford20-Feb-06 12:01
Joshua Lunsford20-Feb-06 12:01 
GeneralRe: distinct columns? Pin
Chris Meech21-Feb-06 3:53
Chris Meech21-Feb-06 3:53 
QuestionTyped dataset and ReadXml Pin
slappe20-Feb-06 2:37
slappe20-Feb-06 2:37 
QuestioncomboBox1.ValueMember = "column1" Pin
myNameIsRon19-Feb-06 11:51
myNameIsRon19-Feb-06 11:51 
Hi,
I'm populating a datatable from a database file and then populating a combobox with it:

ComboBox1.DataSource = myDataTable;
ComboBox1.DisplayMember = "Name";
ComboBox1.ValueMember = "NameID";

The problem is:
I need to have more than one hidden value. I would like to have two hidden values in ValueMember. I thought maybe I could combine two columns (split with a comma) and then use an array to get the right value via split. Is it possible to commbine columns at the ValueMember?
ComboBox1.ValueMember = "NameID" + ',' + "IsMarried";
Nothing I tried like this works, so I'm guessing you can only assign ONE column to the ValueMember?

I thought this might be true so I tried to combine the two columns at the sql line:
NameID + ',' + IsMarried AS Name_IsMarried
This did not work as well, I think because I'm trying to combine a string with a boolean column.

Any help would be greatly appreciated!
Ron

AnswerRe: comboBox1.ValueMember = "column1" Pin
Ritesh123419-Feb-06 18:37
Ritesh123419-Feb-06 18:37 
GeneralRe: comboBox1.ValueMember = "column1" Pin
myNameIsRon20-Feb-06 12:50
myNameIsRon20-Feb-06 12:50 
AnswerRe: comboBox1.ValueMember = "column1" Pin
AlexeiXX320-Feb-06 7:18
AlexeiXX320-Feb-06 7:18 
GeneralRe: comboBox1.ValueMember = "column1" Pin
myNameIsRon20-Feb-06 12:45
myNameIsRon20-Feb-06 12:45 
GeneralRe: comboBox1.ValueMember = "column1" Pin
AlexeiXX320-Feb-06 13:41
AlexeiXX320-Feb-06 13:41 
QuestionDate problem Pin
sebastian yeok18-Feb-06 22:41
sebastian yeok18-Feb-06 22:41 
AnswerRe: Date problem Pin
Colin Angus Mackay19-Feb-06 0:41
Colin Angus Mackay19-Feb-06 0:41 
GeneralRe: Date problem Pin
sebastian yeok19-Feb-06 1:53
sebastian yeok19-Feb-06 1:53 
GeneralRe: Date problem Pin
Colin Angus Mackay19-Feb-06 2:19
Colin Angus Mackay19-Feb-06 2:19 
GeneralRe: Date problem Pin
sebastian yeok19-Feb-06 2:37
sebastian yeok19-Feb-06 2:37 
GeneralRe: Date problem Pin
Colin Angus Mackay19-Feb-06 2:43
Colin Angus Mackay19-Feb-06 2:43 
QuestionHow to indent SQL statements? Pin
sacoskun18-Feb-06 21:19
sacoskun18-Feb-06 21:19 
AnswerRe: How to indent SQL statements? Pin
Colin Angus Mackay19-Feb-06 0:26
Colin Angus Mackay19-Feb-06 0:26 
GeneralRe: How to indent SQL statements? Pin
CWIZO19-Feb-06 1:40
CWIZO19-Feb-06 1:40 
GeneralRe: How to indent SQL statements? Pin
Paul Conrad19-Feb-06 7:45
professionalPaul Conrad19-Feb-06 7:45 
GeneralRe: How to indent SQL statements? Pin
sacoskun20-Feb-06 9:10
sacoskun20-Feb-06 9:10 
Questionmove table record Pin
sebastian yeok18-Feb-06 21:02
sebastian yeok18-Feb-06 21:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.