Solved

Update a datagridview with a dataset vb.net

Posted on 2012-04-12
2
427 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
Comment Utility
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
Comment Utility
Thanks - simple when you know how - just needed the  Table(0) at end
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 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

17 Experts available now in Live!

Get 1:1 Help Now