PC Review


Reply
Thread Tools Rate Thread

Bound Data Class

 
 
=?Utf-8?B?U3RldmUgS2FsbGFs?=
Guest
Posts: n/a
 
      2nd Apr 2004
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

 
Reply With Quote
 
 
 
 
Cor
Guest
Posts: n/a
 
      2nd Apr 2004
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


 
Reply With Quote
 
Peter Huang
Guest
Posts: n/a
 
      5th Apr 2004
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a bound class swas Microsoft Access Form Coding 10 9th Feb 2010 11:24 PM
Sort Datagrid bound to custom class array Ben Microsoft C# .NET 5 10th Jul 2008 11:18 PM
FormView bound to Custom Class with Object DataSource Stuart Ferguson Microsoft ASP .NET 1 3rd Apr 2006 10:59 PM
Re: PropertyManager.EndCurrentEdit() marks the bound dataview row as Modified even if the data in the bound control is unchanged Miha Markic [MVP C#] Microsoft ADO .NET 0 5th Jun 2004 11:19 PM
Datagrid bound to CollectionBase class doesn't use Enumerator! Oliver Hopton Microsoft C# .NET 0 2nd Oct 2003 11:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:41 AM.