Home Forums WinForms controls Xceed Grid for WinForms Howto insert a new row with InsertionRow Reply To: Howto insert a new row with InsertionRow

User (Old forums)
Post count: 23064

Okay, I figured out, that it is indeed as simple as stated in the documentation:

The datatable update failed in my case, because the primary key datacolumn of the datatable was not configured properly

(i.e. missing autoincrement settings), so that the new row being inserted by the insertionrow violated the primary key constraint

of the datatable with the primary key column being null.

Modifying the autoincrement properties of the datacolumn generated a valid primary key and the datatable update worked perfectly!



Imported from legacy forums. Posted by Dietmar (had 977 views)