Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 29th, 2007, 12:53 PM
Registered User
 
Join Date: May 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default save changes to datagridview

Hi all this is my first post here, hope I'm in the right place. If not please redirect:

vs2005
I fetch a dataset from the db then set a datagridview's datasource to a table in the returned dataset. The user can make changes on the datagridview. I want to update the db, but instead posting the entire dataset back, I would like to just give the rows from the dgv (if any) which have been modified/added.

Not sure how to do this. Should I use an event handler from the dgv - if so which one(s)?

Or would it be better to try to compare the new dataset with a copy of the original dataset?

I would prefer to update a row after a cell has been edited/modified/added - but need to give the db the entire row, not just the cell. Don't need help w/db code just how to get the rows from dgv. Hope that makes sense, I'm new at this and coding in VB so if you could provide a little code to get the ball rolling, I'd really appreciate it, TIA

jr

 
Old May 30th, 2007, 08:13 AM
Registered User
 
Join Date: May 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Due to lack of interest on this forum, I have cross-posted here:

http://forums.microsoft.com/MSDN/Sho...66976&SiteID=1

sorry for the inconvenience-






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
datagridview help manius VB Databases Basics 1 January 27th, 2008 02:44 AM
datagridview thirumalai ASP.NET 1.0 and 1.1 Professional 1 April 7th, 2007 03:35 AM
Save data on datagridview salemkoten SQL Server 2005 1 November 2nd, 2006 11:04 PM
DataGridView nnmrao Visual Studio 2005 0 February 7th, 2006 02:08 AM





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