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
 
Back
Top