Solved

Update a datagridview with a dataset vb.net

Posted on 2012-04-12
2
440 Views
Last Modified: 2012-08-13
I am reading an xml file external to my application and want to display this information on a grid for the user to review prior to updating to tables.

I can read the info into a dataset but I am not sure how to populate the grid with this information - seems to require a dataadaptor linked to the database. I am hoping to do this without creating temporary tables.

Appreciate it if someone could point me in the right direction to do this.
0
Comment
Question by:donhannam
2 Comments
 
LVL 17

Accepted Solution

by:
nepaluz earned 500 total points
ID: 37840378
If thegrid yourefer tois a datagridview (or even a datagrid) simply set the datasource, e.g
Me.DataGridView1.DataSource = DataSet1.Tables(0)

Open in new window

(assumes the dataset is called DataSet1 and the datagridview DataGridView1)
0
 

Author Closing Comment

by:donhannam
ID: 37840477
Thanks - simple when you know how - just needed the  Table(0) at end
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Multiple file Upload asp.net 2 36
Expando 4 46
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\folder\access.accdb; is makking a error 11 42
Variable Event ? 3 17
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

948 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

23 Experts available now in Live!

Get 1:1 Help Now