DataError event not fired in datagridview
In my project DataError event is working on one form but on other forms event is not fired.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sagar PardeshiRank #103 · 20.8K reputationPosted Jun 11, 2014, 9:45 PM EDT
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; }