I have two tabs in my form. The second one contains the DataGridView. I press "Open" button on the first tab and data is added into the table. I have added Console.Wri