Solved

DataSet / Filling DataSet?

Posted on 2016-08-24
1
19 Views
Last Modified: 2016-08-25
I'm using vb.net / winforms.
I created a DataSetfor for some tables on a SQL Server. On the form the DataSet shows on the bottom. When I go into it (Edit in DataSet Designer) I see the table columns and bellow it TableAdapter, bellow that I see SQL Fill, GetData().
What is this Fill and GetDAte()? If they are methods to load the data, how do I call them from my code? As is, when I check this DataSet it contains now data.
0
Comment
Question by:Jess31
1 Comment
 
LVL 12

Accepted Solution

by:
Ramkisan Jagtap earned 500 total points
ID: 41769866
Check the following example to fill:

Dim northwindDataSet As New NorthwindDataSet()
Dim customersTableAdapter As New NorthwindDataSetTableAdapters.CustomersTableAdapter()

customersTableAdapter.Fill(northwindDataSet.Customers)

Open in new window


Reference:
https://msdn.microsoft.com/en-us/library/ms233822.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1
https://msdn.microsoft.com/en-us/library/ms171919.aspx
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now