I have 2 forms: 1- Main form viewing a datagrid of different values of database X 2- A secondary form used for adding new data into database X When any data is entered in Form2 and Form2 is closed; it's needed to update datagrid with new values in Form1. But it doesn't update quickly, a 3-4 second late. Using Access database, I've found a nasty dirty solution : Having a timer and updating datagrid periodically. Is this a problem about Access slow query time or any problem about forms or etc? Any idea ???
sopho24
Posts
-
Problem updating datagrid of master form -
Determining time of query endHow can I code for controlling end of a database query and command? Assume I must run a messagebox when query finished certainly. How can I be sure query was finished (in code) ?
-
hi, c# formsyes, it's written in closed event in a different solution..
-
Hide form at startupAny code remain in designer.cs; for example a visible property with true value?
-
Hide form at startupCan be accessed to visible property from properties window in design view
-
hi, c# formsI'm working with 2 forms Form1 and Form2. Logically Form1 is a parent form and Form2 is where a data input is requested from user. When Form2 opened upon Form1, user enters some data and Form2 exits. When Form2 exits, the datagrid in Form1 must be updated with new value. I'm trying to update datagrid with a code inside Form2.cs : //inside Form2.cs, a method of click of a button ...sql operations bla bla Form1 f = (Form1)this.owner; f.fillDataGrid(); // this method belongs to Form1 this.Close(); But..... Datagrid doesn't always update, sometimes works. Any idea? A non-smart way I tried, to use focus event; but it doesn't focus anyway. Plz help may the force be with you, always