Textbox databindings

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Infog
    New Member
    • Dec 2008
    • 36

    Textbox databindings

    I am getting an error I don't understand - "Child list cannot be created".

    I have successfully bound a DataView column to a textbox, but am having problems binding a child table's column in the same way.

    DataView column > Relation > Parent table column

    What format should I be using to link from a dataview with IDs, to the parent tables that contain the actual information?

    Code:
    ' To show the stored job's City name (works)
    myTextBox.DataBindings.Add("Text", myDataView, "City")
    
    ' To show the State name, based on a stored ID (doesn't work)
    myTextBox.DataBindings.Add("Text", myDataView, "JobsTable.JobsToStateNameRelation.StateNameColumn")
Working...