468,544 Members | 1,776 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,544 developers. It's quick & easy.

How do you save data from an unbound datagridview in VB?

Hi,

I'm kind of a newbie to VB, so I hope this doesn't seem too trivial. I
have a problem with the DataGridView control. I can find all kinds of
stuff about populating data in a DataGridView control, but I haven't
found a way to save the data on program exit. There must be a way,
after all, you can't expect people to re-input all the data every time
they use your program!

Any help is appreciated.

Jeff

Dec 14 '05 #1
2 7038
JeffGoneMad wrote:
Hi,

I'm kind of a newbie to VB, so I hope this doesn't seem too trivial. I
have a problem with the DataGridView control. I can find all kinds of
stuff about populating data in a DataGridView control, but I haven't
found a way to save the data on program exit. There must be a way,
after all, you can't expect people to re-input all the data every time
they use your program!

Any help is appreciated.

Jeff

Write the code to save the data to a file.

Tom

Dec 14 '05 #2
Jeff,

What is the datasource?

If it is a dataset, you can update that in the database or write it to a
disk using

ds.writeXML("mypath.xml")

I hope this helps,

Cor
Dec 14 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Henok Girma | last post: by
7 posts views Thread by Rainer Queck | last post: by
6 posts views Thread by alexia.bee | last post: by
3 posts views Thread by Richard Lewis Haggard | last post: by
4 posts views Thread by Anthoni | last post: by
4 posts views Thread by Christian | last post: by
reply views Thread by Ed Bitzer | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.