View Single Post
  #2 (permalink)  
Old 06-29-2009, 10:00 PM
jmcilhinney's Avatar
jmcilhinney jmcilhinney is offline
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2004
Location: Sydney, Australia
Age: 40
Posts: 6,124
Reputation: 542
jmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalist
Default

First up, please post your questions in the most appropriate forum for the topic, not just the first one you come to. Anyone who takes the time to read the forum descriptions can find the most appropriate forum so, after 18 posts, we shouldn't have to tell you this. Thread moved.

As for the question, either you are mistaken about what's happening, your own code is causing that problem or there's something seriously wrong with your project because that's not how the DataGridView works. The row is not added to the underlying DataTable until you navigate away from the grid row. I've attached a project to demonstrate this. As you can see from that project, no error message is displayed unless you try to leave the new row without entering a value for the middle column.
Attached Files
File Type: zip DataGridViewNullDemo.zip (14.3 KB, 3 views)
Reply With Quote