Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Datagridview new cell not working

$
0
0

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.

  1. I enter a date, and save (when I say save I mean to the SQL Server).
  2. I check in Sql Server Management Studio and the date is there.
  3. The Date is on the screen.
  4. I close the form and reopen (this causes the dataset to be recreated and re-fetched).
  5. The date is gone.  It's just blank.
  6. Looking in Sql Server management studio it's still there.
  7. 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.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>