PC Review


Reply
Thread Tools Rate Thread

Databinding and Validation with UserControls

 
 
Christof Nordiek
Guest
Posts: n/a
 
      4th Apr 2005
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


 
Reply With Quote
 
 
 
 
Christof Nordiek
Guest
Posts: n/a
 
      5th Apr 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" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataBinding to a UserControl with several nested, Bindable UserControls Steve K. Microsoft C# .NET 2 22nd Jan 2008 12:25 AM
Order of events, databinding, and UserControls Nathan Sokalski Microsoft ASP .NET 9 23rd May 2006 05:32 PM
Order of events, databinding, and UserControls Nathan Sokalski Microsoft VB .NET 9 23rd May 2006 05:32 PM
Order of events, databinding, and UserControls Nathan Sokalski Microsoft ADO .NET 9 23rd May 2006 05:32 PM
Clientside Validation in UserControls MattC Microsoft ASP .NET 1 22nd Jul 2005 05:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:05 PM.