DataError event not fired in datagridview
In my project DataError event is working on one form but on other forms event is not fired.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sagar PardeshiPosted Jun 12, 2014, 1:45 AM
string errorText; private void dataGridView_DataError(object sender, DataGridViewDataErrorEventArgs e) { // This will return the last text entry that was not erroneous. string cellValue = dataGridView[e.ColumnIndex, e.RowIndex].Value.ToString(); // This will get the text indicating the error condition. errorText = dataGridView[e.ColumnIndex, e.RowIndex].ErrorText; }