I edited my codes above on my post and added a image.
Configuration; namespace GRP_02_03_SACP I have no errors already by following your code.
In this article, we will discuss some frequently asked questions and their solutions.
These questions have been collected from a variety of sources including some newsgroups, MSDN site and a few, answered by me at the MSDN forums.
Virtual mode gives you a higher degree of control by allowing you to wait until a cell is actually being displayed to provide the value it will contain.
The following C# source code illustrate how to connect a Data Grid View to a database and new/update or delete the database values from Data Grid View.
You can easily update a database from a Data Grid View. Step 4See the properties of the Adapter on Data Set, whether it has a query for updating or not. Step 5A line is automatically generated, when you bind the Data Grid View to the dataset.
This method uses the Sql Data Adapter to populate a Data Set.
In the preceding code, I created a data Grid View1_Row Header Mouse Click Event for updating and deleting the selected record.
If you want your Button on Form B to retrieve the latest data from the database then that's what you have to do whatever Form_Load is doing.
My guess is the data retrieval is on the Form_Load.