C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2720
Number of posts: 5746

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Small (and probably stupid) problem with dataset Posted by edrrit on 24 Jun 2008 at 3:36 AM
Hello everyone,

as will be seen from the following massage I am new to C#. I have dataGrid that reads data from mine database. Also, I can update database from dataGrid, but I want to update it in more ways. So, I have the following code just to see something, but to mine big surprise it does not give me the results that I expect:

dataSet1.Tables["Example"].Rows[4].ItemArray[4]=33;
MessageBox.Show(dataSet1.Tables["Example"].Rows[4].ItemArray[4].ToString());

MessageBox shows me the old value (the value is not changed). Why is that?

Thanks in advance.
Report
Re: Small (and probably stupid) problem with dataset Posted by edrrit on 25 Jun 2008 at 3:17 AM
Sorry. This was unnecessary post. I forgot to put the following line:
oleDbDataAdapter1.Update(dataSet1,”Example”)






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.