I'm guessing you have to update it, I don't have much experience with DataGrid views, but have you tried the doing:
GridView1.Show();
Or maybe:
GridView1.Update();
I might be wrong, maybe someone with more experience can suggest something else.
charlybones
Junior Poster in Training
77 posts since Jan 2011
Reputation Points: 16
Solved Threads: 16
You cannot set DataReader as a binding source to any control. Instead, you should use DataAdapter class.
//...
progress.Value = 40;
OleDbConnection conn = new OleDbConnection("connString");
DataTable table = new DataTable(); //can be a class variable too.
OleDbDataAdapter da = new OleDbDataAdapter("SELECT ID, Status FROM AH01", conn);
da.Fill(table);
GridView1.DataSource = table.DefaultView;
conn.Dispose();
progress.Value = 100;
Mitja Bonca
Nearly a Posting Maven
2,485 posts since May 2009
Reputation Points: 641
Solved Threads: 474