Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# version of VFP With ?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00772760
Message ID:
00773673
Vues:
9
Unless he has some other reason for doing this, he is stepping around the built in functionality of MMF so I would say yes to your question.

>Right, I've done similar functionality in my "framework" ... so, what Stephen is doing is not necessary, correct?
>
>~~Bonnie
>
>>With MMF, you only need to set the BindingSource to your Business Object and the BindingSourceMember to the name of the DataTable/DataView and column name like:
>>
>>MyTable.CustName
>>
>>You don't need to set the Text property nor call DataBind. The framework handles that automatically.
>>
>>>Plus, it seems that you need to do this a little easier ... that's way too much stuff to have to type just to databind each textbox.
>>>
>>>Isn't there some kind of DataBinding eventhandler in MM's TextBox base class? (Is this a WebForm or a WinForm?)
>>>
>>>~~Bonnie
>>>
>>>
>>>>>With Intellisence, you don't need it. :)
>>>>
>>>>With my typing I DO ;)
>>>>
>>>>I am taking empty fileds and populating them via:
>>>>MmTextBox2.BindingSource = "SecurityCl1";
>>>>MmTextBox2.BindingSourceMember = "em_first";
>>>>MmTextBox2.Text = (dsEmployee.Tables["employee"].Rows[0]["em_first"].ToString());
>>>>MmTextBox2.DataBind() ;
>>>>
>>>>I have to do this for 15+ boxes. I'd love :
>>>>with MmTextBox2
>>>>.BindingSource = "SecurityCl1";
>>>>.BindingSourceMember = "em_first";
>>>>.Text = (dsEmployee.Tables["employee"].Rows[0]["em_first"].ToString());
>>>>.DataBind() ;
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform