Small (and probably stupid) problem with dataset

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.

Comments

  • Sorry. This was unnecessary post. I forgot to put the following line:
    oleDbDataAdapter1.Update(dataSet1,
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion