private void messagesDataGridView_DataError(object sender, DataGridViewDataErrorEventArgs e) { e.Cancel = true; }