By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,552 Members | 905 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,552 IT Pros & Developers. It's quick & easy.

Porting data binding code from VB6 to VB.NET

P: 1

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

Expand|Select|Wrap|Line Numbers
  1. DataList.RowSource = myData
  2. DataList1.listColumn = "foo"
  3. DataList1.boundColum = "bar"
  4. 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.Add()

Any advice on these though would be appreciated.

Mar 5 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.