merlin82

merlin82

  • NA
  • 4
  • 0

Dataset.Clear()

Apr 4 2005 11:14 AM
Hi. I'm having problem with dataset.clear() method. I have 2 forms. First has datagrid, double-click on a row opens second form. On that form i change data and then update them on my sql server. Before closing second form i'm trying to clear and fill datagrid with new data from sqlserver but i does nothing. Here's some code from the second form: this.sqlCommand1.CommandText = "update ..."; this.sqlCommand1.ExecuteNonQuery(); kierunki kier = new kierunki(); kier.kier1.Clear(); kier.sqlDataAdapter1.Fill(kier.kier1.Kierunek); this.sqlConnection1.Close(); this.Close(); Can someone tell me what's wrong??