Article ID: 316260 - Last Review: August 14, 2006 - Revision: 3.1 HOW TO: Programmatically Create a Hierarchical DataSet Object with ADO.NET in Visual Basic .NETThis article was previously published under Q316260 On This PageSUMMARY This step-by-step article describes how to create a
hierarchical DataSet object that you can use as a structure for your programs. You may
not have the exact data or structure that you want to use for your project. You
can use the method in this article to create prototypes for your examples. It
may also be easier to submit only the data that you do have to the database
without using the shape command syntax to send the data to the
database. You might also have a limited set of data that you must add to the
database. Instead of passing 20 arguments about the data to a method, you can
pass the programmatically created DataSet object. This article describes how to use this method. This example in this article creates a new customer and creates related order information, and outputs the data as XML. You start by defining the DataSet object, and then create two tables and a row. Then, you define the columns, add a relationship between the tables, fill the rows with data, append rows to the rows collection, and present the data in XML format. RequirementsThe following list outlines the recommended hardware, software, network infrastructure, and service packs that are required:
Create the Project
REFERENCES For additional information about how to populate a DataSet object in Visual Basic .NET, click the article number below to
view the article in the Microsoft Knowledge Base:
301216
(http://support.microsoft.com/kb/301216/EN-US/
)
HOW TO: Populate a DataSet Object from a Database by Using Visual Basic .NET
| Article Translations
|

Back to the top
