Problem with GridView

Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Apr 2004
Posts: 129
Reputation: johnroach1985 is an unknown quantity at this point 
Solved Threads: 0
johnroach1985's Avatar
johnroach1985 johnroach1985 is offline Offline
Junior Poster

Problem with GridView

 
0
  #1
Dec 14th, 2007
Hi. I am working on this project and I am little stuck. Trying to update my gridview after i had added data to the .mdb database but it just won't update. You can find the whole project at http://johnroach.info/FilmKira.rarThe button I have problem with is the "Urun Ekle" button. When you click that a new form opens up and you enter the data by clicking "Ekle!" However whatever I tried I still couldn't get the datagridview1 to update. Any help would be welcomed...
"By the data to date, there is only one animal in the Galaxy dangerous to man—man himself. So he must supply his own indispensable competition. He has no enemy to help him."
From Time Enough for Love by Robert A. Heinlein
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 129
Reputation: johnroach1985 is an unknown quantity at this point 
Solved Threads: 0
johnroach1985's Avatar
johnroach1985 johnroach1985 is offline Offline
Junior Poster

Re: Problem with GridView

 
0
  #2
Dec 14th, 2007
Ok found solution!!

added a refresh button. I don't know which one worked... Any ideas which one worked?

  1. private void button3_Click(object sender, EventArgs e)
  2. {
  3.  
  4. databaseDataSet.GetChanges();
  5. databaseDataSet.urun.AcceptChanges();
  6. this.urunTableAdapter.Fill(this.databaseDataSet.urun);
  7. dataGridView1.Refresh();
  8. dataGridView1.Update();
  9.  
  10.  
  11.  
  12.  
  13.  
  14. }
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC