|
-
Apr 29th, 2005, 10:55 AM
#1
Thread Starter
Addicted Member
How to update a dataset with a datagrid
Hey everyone,
I have been searching google for a few days now trying to fix an example how to do this.
My program collections information and stores it inside a datagrid. That part works fine. I am having trouble figuring out how to take that datagrid and create a new dataset from it with all the information the datagrid contains. I will then use that dataset with a OLEdBDataAdpater to update a Microsoft Access Database.
How can I do this? All the code I have found online is for taking a table from a database , storing it in a dataset and then setting the datasource of the datagrid to the dataset.
I know this is possible and it's probably really easy.
-
Apr 29th, 2005, 02:47 PM
#2
Thread Starter
Addicted Member
Re: How to update a dataset with a datagrid
Anybody? Any Hints? Tips? Jokes or Comments
-
May 1st, 2005, 03:19 PM
#3
Thread Starter
Addicted Member
Re: How to update a dataset with a datagrid
-
May 1st, 2005, 09:50 PM
#4
Re: How to update a dataset with a datagrid
You could take that datagrid into a table then take that table storing it in a dataset and then setting the datasource of the datagrid to the dataset....
-
May 2nd, 2005, 07:23 AM
#5
Thread Starter
Addicted Member
Re: How to update a dataset with a datagrid
How would I convert a datagrid to a table?
-
May 2nd, 2005, 07:58 AM
#6
Re: How to update a dataset with a datagrid
Can you create a recordset out of your collections information?
If so, you could easily dump that recordset into a DB table using INSERT INTO.
-
May 2nd, 2005, 08:36 AM
#7
Thread Starter
Addicted Member
Re: How to update a dataset with a datagrid
I don't have a collection of information. I just have a datagrid that is filled with information dynamiclly.
-
May 2nd, 2005, 09:43 AM
#8
Re: How to update a dataset with a datagrid
Ok...from what source does the datagrid get populated?
-
May 2nd, 2005, 11:56 AM
#9
Thread Starter
Addicted Member
Re: How to update a dataset with a datagrid
A custom collection of custom objects I created =)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|