Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Update a datagridview with a dataset vb.net

Posted on 2012-04-12
2
Medium Priority
?
477 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

670 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