On Error

The OnError() Event is a callback which is invoked when a cell on the datagridview format or validation fails.

//Bind the list to datagrid view
    _dataGridView.OnError<User>((user, error) =>
            {
                MessageBox.Show(error.Message);
            });

Last updated

Was this helpful?