handeling the commiting in dataset

hello all i used a datagrid in my program to manage a sql table in c#.net windows form.in sql table exist a column (name is code) and set allownull=false.in datagrid that bind to this table when adding new row with null code the message window is appeared.how can i change this message or handle this message. thanks

Loader.
Up arrow icon