Problem with display of DataGridView
I am displaying a data table in a datagridview. I have two fields, 'key' and some 'text'.
The 'key' field visiblity is turned off.
When I display the form it displays only the 'text' column (as I expect).
But if I close the form and reopen it the datagridview now displays the 'key' and the 'text' columns.
Any suggestions why this occurs?
Sorry, not sure if this should be posted under database forum.
Re: Problem with display of DataGridView
There's a lot of possibilities from where and when you declare the column visibility, create the datagridview, populate the datatable and the dgv, and handle the form. And probably a lot of other things I haven't even thought of yet. There's really no choice but to go through this line by line to find out what happens when you initially open the form that doesn't happen when you reopen it.