PC Review


Reply
Thread Tools Rate Thread

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

 
 
JeffGoneMad
Guest
Posts: n/a
 
      14th Dec 2005
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

 
Reply With Quote
 
 
 
 
tomb
Guest
Posts: n/a
 
      14th Dec 2005
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

 
Reply With Quote
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      14th Dec 2005
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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vb.net 2008 Datagridview bound/unbound columns update datasource effecting unbound columns Rob W Microsoft VB .NET 4 24th Nov 2009 10:27 PM
Bound + Unbound in DataGridView and unbound won't sort... Grant Schenck Microsoft ADO .NET 0 9th Oct 2009 12:28 AM
DataGridView - Unbound Data - Displaying Images or Icons samadams_2006@yahoo.ca Microsoft Dot NET Framework Forms 0 28th Dec 2007 12:32 AM
write data of unbound datagridview to XML Anthoni Microsoft C# .NET 4 31st May 2007 08:00 AM
Save unbound text data =?Utf-8?B?TWljaGVsbGU=?= Microsoft Access Reports 1 23rd Jun 2006 12:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:57 PM.