Advertisement

11.12.2007 at 02:03AM PST, ID: 22954055
[x]
Attachment Details

Cant manage to update a gridview and dataset.

Asked by Kelvin81 in C# Programming Language, Programming for ASP.NET, Visual Studio .NET 2005

Tags: gridview, update, dataset

Hi,

This is a large question, that has multiple smaller questions inside.  I'm willing to open up new questions.  I have a DataSet getting data from a database, and binding it to a GridView.  

(NOTE: This is a web page not a WinForm)

I have been trying on and off for weeks different approaches to get the data back into the grid and then back into the database.

SO .. here's the overall question:

How do I Update a gridview and then get those changes back to the database.  
     A.  What is the best way of updating the grid view
     B.  I realize that I need to put code into the events, but what events and how I can't     manage.
     C.  is there somewhere that I need to put an UpdateCommand  
            i.  Isn't the update command finally different from a GridView.

I know i'm asking a lot, but it seems like I need to understand the whole thing to be able to do this.

Thanks in advance,
Kelvin
Start Free Trial
[+][-]11.12.2007 at 02:28AM PST, ID: 20263134

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.12.2007 at 02:59AM PST, ID: 20263212

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C# Programming Language, Programming for ASP.NET, Visual Studio .NET 2005
Tags: gridview, update, dataset
Sign Up Now!
Solution Provided By: cmhunty
Participating Experts: 2
Solution Grade: C
 
 
[+][-]11.12.2007 at 04:49AM PST, ID: 20263535

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.14.2007 at 06:28PM PST, ID: 20286040

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628