ComboBox DataBinding Problem

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

ComboBox:
DataSource = dataset
DataMember = "LookupTableName"
SelectedValue = "ChildTableName.ForeignKeyID"

Grid:
DataSource = dataset
DataMember = "ChildTableName"

Assume you've established relationship between ChildTable
and LookupTable.
 
Hi Paul,
there is no Master detail relationship that needs to be established. I
dont have a DataGrid.
There is one combobox that needs to be filled from one table
(tblSessionType DataSource) and its ValueMember needs to be BIND to a
column of another table (tblSessions).
The ValueMember is set to "ID" column of tblSessionType wich needs to be
bind to "SessionType" column of tblSessions through SelectedValue
property of combobox.
Since the names of the columns is different is this causing it not to
bind ?
I am not doing any thing through the code except for the Fill() method,
so there is no chance of them having named wrongly. thanks

Aamir
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top