Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coordinating Objects
Message
De
31/08/2007 03:24:10
 
 
À
31/08/2007 00:38:31
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01250452
Message ID:
01251571
Vues:
14
Hi,

>Sorry to be so slow in replying ... I've been real busy.

No worries. I know the feeling - I'm struggling to scrounge a few days off before summer ends...

>Looks like what you've posted works, so maybe I was wrong. Since BindingSource is new to 2.0, I've not used it much yet ... I'm still using most of what I had already written in 1.1 with very little in the way of upgrading existing code to take advantage of new 2.0 features ... if we found a way to make something work in 1.1, why change it? <g>

I didn't do much with data bindings in 1.1 but it seems that this was an area where 2.0 made a few useful improvements.

>Of course, I'm not sure how this applies to John's original question about his DateTime control (other than him asking if you could bind two controls together).

I figured he could just bind each control to the next one up the hierarchy and the binding source would do the job instead of custom events. It would also allow John to use the Binding.Parse and .Format events to convert the data between controls if that were neccessary.

Regards,
Viv

>>Am I missing something. I thought you could use any object as a data source. Doesn't this, given for example two textboxes, bind their Text properties together.
>>        BindingSource bs = new BindingSource();
>>        bs.DataSource = textBox1;
>>        textBox2.DataBindings.Add("Text", bs, "Text");
>>
>>Regards,
>>Viv
>>
>>>Well, no, you can't databind 2 controls together in the classic sense of the meaning of databind.>
>>
>>>>Is it possible to bind a control to something other than a dataset? For instance could 2 controls be bound together?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform