I have a DataGridView that is bound to a DataTable. When a row in the table has an error (row.RowError is not empty), the DGV helpfully displays an error icon and tooltip with the error text. Instead of, or in addition to, this behavior, I would like to change the entire row color.
What event does the DGV subscribe to in order to handle errors and/or how can I override the DGV's default behavior?
So far, I've tried the following events with no luck:
- RowErrorTextChanged (not raised)
- RowStateChanged (none of the DataGridViewElementStates corresponds to an error state)
- DataError (not raised)
- RowErrorTextNeeded (gets raised constantly)
- BindingSource.DataError (not raised)
I even looked at protected methods in order to sub-class the DGV and override the row error handler, but I couldn't find anything promising.