Skip to content

Refresh DataGridView

aamer ah

Asked Aug 23, 2010, 10:43 AM EDT1 answer
Share
LinkedInX
Hi,
I try to do project in C# that work with a database, and have a MainForm with a datagridview (display the data from the database).
and have other form, AddForm, that i run it from the MainForm and add a list to the database.
the problem i see when i added a new list to the database (with AddForm form) and close the form the DateGridView can't updated!! 
I tried to do refresh to the datagridview and to the form, but nothing succeed.
note: when i close the program (MainForm) and run it i see the new list found into the datagridview!!

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Suthish Nair
    0
    you need to rebind your datagridview from database after new insertion.
    0