Datagridview new cell not working
This is a DESKTOP Visual Studio 2010 App, NOT ASP.NET
I have a Datagridview displaying an editable dataset.
It has been working well for a year but lately I have sinned against Microsoft.
I added a column. I added a date in the SQL Server data, and then to the XSD Dataset.
Then I added it to the DataGridView.
The column appears, but here's what it is doing.
- I enter a date, and save (when I say save I mean to the SQL Server).
- I check in Sql Server Management Studio and the date is there.
- The Date is on the screen.
- I close the form and reopen (this causes the dataset to be recreated and re-fetched).
- The date is gone. It's just blank.
- Looking in Sql Server management studio it's still there.
- If I save the form and check in Sql Server Management Studio the date is nulled out.
So... Somehow the date column is getting lost during the READ process. I have done a "Preview Data" in the Dataset, the BindingSource, and the Datagridview, and the date column seems to be there.
Visual Studio is becoming the #1 reason I want to change professions.
I'd rather live with false hope than with false despair.
I'd rather live with false hope than with false despair.