Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 3.5 and Visual Studio. 2008 > Visual Studio 2008
|
Visual Studio 2008 For discussing Visual Studio 2008. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2008 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 8th, 2009, 06:59 PM
Registered User
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to shaiss Send a message via MSN to shaiss
Default Save DataGridView Control to my.settings

I have a DataGridView Control that looks like this

_________________
Name1 |Name2|
_________________
JOE |JOE |
_________________
SHAI |SHAI |
_________________
STEVE |STEVE|
_________________
STEVE |STEVE|
_________________

I have a button called "save"

What I want:
When the user clicks the save button the data from the DataGridView gets saved into a my.settings value so that I can call it at a later time when the user renters this form or on another form.

Question:
What variable type should the my.settings variable be?
How would you commit the DataGridView data to this variable in code?
How would you call this variable to fill another DataGridView

Thank you everyone for your help!





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to save DataGridView to temp dataset smithsf22 ADO.NET 1 April 17th, 2008 10:14 PM
Save checkbox settings to cookie clockwork Beginning PHP 1 November 20th, 2007 05:45 AM
save changes to datagridview jriggs General .NET 1 May 30th, 2007 08:13 AM
Save data on datagridview salemkoten SQL Server 2005 1 November 2nd, 2006 11:04 PM
how to save & restore default printer settings? Tiffany Pro VB 6 1 April 7th, 2004 06:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.