private void DataBindings_Error(object sender, DataBindingErrorEventArgs e) { string msg = String.Format("The error {0} occurs in attempt to {1} in row with index= {2}", e.ErrorType.ToString(), e.BindingDirection.ToString(), e.RowIndex); MessageBox.Show(msg, "Binding Error"); }
private void DataBindings_Error(object sender, DataBindingErrorEventArgs e) { MessageBox.Show(String.Format("Error at worksheet.Rows[{0}].\n The error is : {1}", e.RowIndex, e.ErrorType.ToString()), "Binding Error"); }