title: NPGSQL + dataGridView + change of dg in code
body: <p>I have one problem in my app. I am using NPGSQL library to connect to PostgreSQL server. Everything is ok. But :)</p>
  
  <p>I am feeling dataGridView like this:</p>
  
  <pre><code>dataSetUzytkownicy = new DataSet("users");
  dataAdapterUzytkownicy = new NpgsqlDataAdapter();
  dataAdapterUzytkownicy.SelectCommand = new NpgsqlCommand("select * from users", bazaDanych.Connection);
  dataAdapterUzytkownicy.Fill(dataSetUzytkownicy, "users");
  dataTableUzytkownicy = dataSetUzytkownicy.Tables["users"];
  dgUzytkownicy.DataSource = dataTableUzytkownicy;
  </code></pre>
  
  <p>next I call methods for insert, update and delete. It is working good. I have one more button. I need after click on it, change one value in row from true to false. I'm doing this in this code:</p>
  
  <pre><code>dgUzytkownicy.SelectedRows[0].Cells[5].Value = false;
  dataAdapterUzytkownicy.Update(dataSetUzytkownicy, "users");
  </code></pre>
  
  <p>It changes value in dataGrid, but after I click save which is:</p>
  
  <pre><code>dataAdapterUzytkownicy.Update(dataSetUzytkownicy, "users");
  </code></pre>
  
  <p>it doesn't make change to DB. I think that this is simple thing, but I have no idea what to do. </p>
  
  <p>Thx for answers.</p>