M
Martin
Hi,
I have been working with asp.net and have decieded to make the transition to
winforms.
At present the difference in databinding between the two enviroments is
throwing me.
I am trying to databind a dataset to a listbox control. I have the following
code. The dataset is not a strongly typed dataset and was created with the
sql application block. It has two colums "KnowledgeBaseName" and
"KnowledgeBaseID"
lbSelectKB.DataSource = ds
lbSelectKB.DisplayMember = "KnowledgeBaseName"
lbSelectKB.ValueMember = "KnowledgeBaseID"
Can anybody please help me out..
can I have two items bound to the control.
I am unsure of how to instigate databinding..
many thanks in advance
cheers
martin.
I have been working with asp.net and have decieded to make the transition to
winforms.
At present the difference in databinding between the two enviroments is
throwing me.
I am trying to databind a dataset to a listbox control. I have the following
code. The dataset is not a strongly typed dataset and was created with the
sql application block. It has two colums "KnowledgeBaseName" and
"KnowledgeBaseID"
lbSelectKB.DataSource = ds
lbSelectKB.DisplayMember = "KnowledgeBaseName"
lbSelectKB.ValueMember = "KnowledgeBaseID"
Can anybody please help me out..
can I have two items bound to the control.
I am unsure of how to instigate databinding..
many thanks in advance
cheers
martin.