Advertisement

03.31.2008 at 12:41AM PDT, ID: 23281798
[x]
Attachment Details

updating a row in a datarow / dataset- not working

Asked by jkinghorn in .NET, C# Programming Language

Tags:

Hello,

I am trying to update a column in my datarow / dataset but it will not set the value!

 foreach (DataRow dr in ds.Tables["PrintlogFile"].Rows)  //table name
            {
                     dr.BeginEdit();
                     dr.ItemArray[6] = "test";    // edit column
                     dr.EndEdit();
       
            }



Any ideas why the old value sticks and will not update with the new?

ThanksStart Free Trial
[+][-]03.31.2008 at 12:47AM PDT, ID: 21243744

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.

 
[+][-]03.31.2008 at 12:51AM PDT, ID: 21243766

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: .NET, C# Programming Language
Tags: c#, asp.net
Sign Up Now!
Solution Provided By: xibidi
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628