DataLink.AddNew Problem

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
Posts: 390
Joined: Sat 09 Dec 2006 12:20

DataLink.AddNew Problem

Post by Zero-G. » Mon 01 Sep 2008 17:15


I do use VB.NET SP1 and your latest controls

I use a DataLink in a form. - When I use: DataLink.AddNew(), I get an error, that the column ID is not allowed to have NULL
This is from my DataBase design, because ID is an AutoIncrement column.

How can I provide this error?


Posts: 725
Joined: Thu 28 Oct 2004 14:06

Post by Paul » Tue 04 Nov 2008 11:51

We cannot reproduce this problem. Please check that properties of DataColumn as set correctly. For example, DataColumn.AutoIncrement==true and DataColumn.AutoIncrementStep have correct value.

Post Reply