Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Update a datagridview with a dataset vb.net

Posted on 2012-04-12
2
458 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
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 …

839 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