G
Guest
Hi,
I'm trying to drop a strongly-typed DataSet onto a form, attach a
BindingSource to one of the tables as well as an ErrorProvider. The control
contains a set of TextBoxes which I bind to columns within the columns within
the same table I bind the BindingSource and ErrorProvider too.
When the control loads up, I call the BindingSource.AddNew() method to start
editing a new row within the DataTable. This works fine and throws an
exception if the first TextBox (which is bound to a column whose AllowDBNull
value is set to false) is left blank. The problem that I'm having is that
the ErrorProvider doesn't seem to be working, but instead an DataException is
generated and the ErrorProvider is never displayed.
If I bind the ErrorProvider to the same DataSet/DataMember that the
BindingSource is bound to it doesn't seem to be working either because it
always displays the ErrorProvider and never clears it and an exception is
still generated when the required column is left empty.
I can send code if you'd like to investigate.
Thanks.
I'm trying to drop a strongly-typed DataSet onto a form, attach a
BindingSource to one of the tables as well as an ErrorProvider. The control
contains a set of TextBoxes which I bind to columns within the columns within
the same table I bind the BindingSource and ErrorProvider too.
When the control loads up, I call the BindingSource.AddNew() method to start
editing a new row within the DataTable. This works fine and throws an
exception if the first TextBox (which is bound to a column whose AllowDBNull
value is set to false) is left blank. The problem that I'm having is that
the ErrorProvider doesn't seem to be working, but instead an DataException is
generated and the ErrorProvider is never displayed.
If I bind the ErrorProvider to the same DataSet/DataMember that the
BindingSource is bound to it doesn't seem to be working either because it
always displays the ErrorProvider and never clears it and an exception is
still generated when the required column is left empty.
I can send code if you'd like to investigate.
Thanks.