I ahve a grid bound to a datatable. When I get a columnchanging event, I do
some verification. Unfortunately, even when I detect an error, I don't know
how to stop the value from being changed. I tried using the row's cancelEdit
and the rejectChanges methods, but these do not stop the update.
private void ColumnChanging(object sender, DataColumnChangeEventArgs e)
if (e.ProposedValue.ToString() == "foo")
MessageBox.Show("foo is not a legal value");