Porting data binding code from VB6 to VB.NET

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nodoid2012
    New Member
    • Mar 2013
    • 1

    #1

    Porting data binding code from VB6 to VB.NET

    Hi,

    I'm moving code from a VB6 to VB.NET which has a pile of ADO.NET code in. For the most part, everything is good. I'm not using the AxDataList controls, rather going for a DataGridView.

    Currently, I'm having issues with the following which don't seem to have an equivalent and are the last ones I'm having issues with

    I have the following

    Code:
    DataList.RowSource = myData
    DataList1.listColumn = "foo"
    DataList1.boundColum = "bar"
    DataList1.BoundText = "food"
    From MSDN, the last three properties can be get/set and are simply strings and RowSource binds to the database.

    RowSource should therefore either be DataSource or DataBindings.Ad d()

    Any advice on these though would be appreciated.

    PFJ
    Last edited by Rabbit; Mar 5 '13, 01:15 AM. Reason: Please use code tags when posting code.
Working...