Hi,
I´m migrating a project from VB6 to VB.NET 2010 Express.
I´m replacing msflex grid with datagridview. But i´m not quite familiar with it.
I´m not using datasource. This will be done (far) latter.
So far i´m filling datagridview by code reading a recordset from mdb. Works fine.
The problem is that, I have defined the columns at visual studio designer mode, without using any code.
When I open my mdi child form for the first time it works. But If I close this form and open it again a error occurs because it loses the defined columns.
Any idea about how to preserve columns defined at design after close de form?
I´m migrating a project from VB6 to VB.NET 2010 Express.
I´m replacing msflex grid with datagridview. But i´m not quite familiar with it.
I´m not using datasource. This will be done (far) latter.
So far i´m filling datagridview by code reading a recordset from mdb. Works fine.
The problem is that, I have defined the columns at visual studio designer mode, without using any code.
When I open my mdi child form for the first time it works. But If I close this form and open it again a error occurs because it loses the defined columns.
Any idea about how to preserve columns defined at design after close de form?