Bound Data Class

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I seem to remember that VB 6 had a way to bind a data class redirectly to an ADO recordset. Simply put, a the class could be populated with the recordset data without a lot of coding simply by using databinding

Can this be done in VB .NET. I would like to write Data Classes and populate it from a DataSet

Thanks in Advance
 
Hi Steve,

When you build everything using the designer it is very simple to do that by
just binding the datataset "table" (watch that last) to the datasource (When
that is a part of the control. It is by instance in the datagrid, the
combobox and the datalist, however not in all controls).

Look for "datasource" in the properties

I hope this helps,

Cor
 
Hi Steve,

What do you mean a Data Class, is Cor's suggestion help you?

As far as I know, when you use drag an dataadapter into the project and
generate a dataset, the dataset will have a class.
You can find its class definition under the Dataset1.xsd by clicking the
Show All files button on the solution explorer.

If you need to add your customized member into a class which inherits from
the class because each time you change the schema of the dataset, the class
will be regenerated.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top