System.Data.dll中发生未处理的“System.Data.NoNullAllowedException”类型的异常附加信息:列“ID”不允许空值。 [英] An unhandled exception of type 'System.Data.NoNullAllowedException' occurred in System.Data.dll Additional information: Column 'ID' does not allow nulls.

查看:124
本文介绍了System.Data.dll中发生未处理的“System.Data.NoNullAllowedException”类型的异常附加信息:列“ID”不允许空值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

helpp这个错误意味着什么?

每次我尝试保存我的数据网格视图时都会发生


没有一行有空列

解决方案

嗨helpmeplzzz


欢迎来到MSDN论坛。


你使用的是什么项目?


基于错误消息,它发生的原因是数据库表中的主键或非NULL列未在数据中选中表单向导。如果在创建数据表单时未在数据表单向导中选择数据库表的主
键或非NULL列,则
添加 - 创建新记录选项未被禁用。


要解决此问题,请在使用数据表单向导添加数据表单时选择所选表的以下列:



  • 主列
  • 不允许的列NULLS

欲了解更多信息,请参考:


https://support.microsoft.com/en-us/help/833902/you-receive-a-column-column-name-does-not-allow-nulls-message-when-you


问候


Judyzh


helpp what this error means?

happen everytime i try to save my datagrid view

none of the rows have empty columns

解决方案

Hi helpmeplzzz

Welcome to the MSDN forum.

What project are you using?

Based on the error message, it occurs because the primary key or the not NULL column of the database table was not selected in the Data Form Wizard. If the primary key or the not NULL column of the database table is not selected in the Data Form Wizard when you create the data form, the Add - Creates a new record option is not disabled.

To work around this problem, select the following columns of the selected table when you add a data form by using the Data Form Wizard:

  • The primary column
  • A column that does not permit NULLS

For more information, please reference:

https://support.microsoft.com/en-us/help/833902/you-receive-a-column-column-name-does-not-allow-nulls-message-when-you

Regards

Judyzh


这篇关于System.Data.dll中发生未处理的“System.Data.NoNullAllowedException”类型的异常附加信息:列“ID”不允许空值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆