Hi folks,

I've got a Form with several Controls. One of it is a UserControl.
Then I have put some DataBinding to the Controls with
control.DataBindings.Add(...);
Know there is some strange Behaviour:
Fist: When I change to the UserControl (by clicking in the control), it
doesn't cause validation on the other control. Only if I change to another
Control the validation is occurs. The UserControl has a Property
CausesValidation wich in the Designer is set to true.
Second: I've got some problem to put the Changed value back to the
DataSource. How can I get sure that the changed value of the DataBound
Property is put back to the Control?

Thanks

Re: Databinding and Validation with UserControls by Christof

Christof
Tue Apr 05 06:36:19 CDT 2005

The problem seames to arise when i'm using a Webbrowser-Control inside the
UserControl to build a HtmlEditor (much like in
http://windowsforms.net/articles/htmleditor.aspx)
I tried to rebuild the problem with a simplier control. The problem is there
when ther is a document in the control.

"Christof Nordiek" <cn@nospam.de> schrieb im Newsbeitrag
news:u0XmoFQOFHA.204@TK2MSFTNGP15.phx.gbl...
> Hi folks,
>
> I've got a Form with several Controls. One of it is a UserControl.
> Then I have put some DataBinding to the Controls with
> control.DataBindings.Add(...);
> Know there is some strange Behaviour:
> Fist: When I change to the UserControl (by clicking in the control), it
> doesn't cause validation on the other control. Only if I change to another
> Control the validation is occurs. The UserControl has a Property
> CausesValidation wich in the Designer is set to true.
> Second: I've got some problem to put the Changed value back to the
> DataSource. How can I get sure that the changed value of the DataBound
> Property is put back to the Control?
>
> Thanks
>