Solved

Update a datagridview with a dataset vb.net

Posted on 2012-04-12
2
468 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
[X]
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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 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