Welcome to MSDN forums! I'm glad to see your active participation and discussion in MSDN forums. Based on your issue
set a datagridview column value behavior to not null?
but what I'd like to get is a warning from datagridview with info just like "the value can't be set to null".
protectedvoid dataGridView1_CellValidating(object source,
if (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value ==
MessageBox.Show("the value can't be set to null");
e.Cancel = true ;
Hope this will help you!
If you still have any doubt and concern about this issue, please let me know. If I misunderstood you, please kindly elaborate your question.