The first 6 DataBindings are to a Table (AssetInspection).
They appear to work. But... "they don't appear in the output". By that I
""Jeffrey Tan[MSFT]"" wrote:
> Hi Aurin,
>
> Thanks for your post.
>
> I am not sure of what does " these databindings don't appear in the output"
> mean. Based on my understanding, you want to bind many controls with simple
> databinding with DataRelation. If so, I think you may refer to the link
> below:
> "4.20 How do I bind a TextBox to a nested relation?"
>
http://64.78.52.104/FAQ/WinForms/FAQ_c43c.asp#q1013q
>
> There is a simple sample in this link showed us how to use relation
> navigation path.
>
> For your #2 question, I think you should have done the right thing. After
> getting the currencymanager reference, we can use
> Binding.BindingMemberInfo.BindingMember to get the navigation path. I used
> the sample project to write the test code like below, which works well:
> private void button1_Click(object sender, System.EventArgs e)
> {
> foreach(System.Collections.DictionaryEntry de in this.BindingContext)
> {
> Console.WriteLine(((WeakReference)de.Value).Target.GetType().ToString());
> if(((WeakReference)de.Value).Target is BindingManagerBase)
> {
> BindingManagerBase
> bmb=(BindingManagerBase)((WeakReference)de.Value).Target;
> foreach(Binding b in bmb.Bindings)
> {
> Console.WriteLine(b.BindingMemberInfo.BindingMember );
> }
> }
> }
> }
> If I misunderstand you, please feel free to tell me, thanks.
> ======================================================
> Thank you for your patience and cooperation. If you have any questions or
> concerns, please feel free to post it in the group. I am standing by to be
> of assistance.
>
> Best regards,
> Jeffrey Tan
> Microsoft Online Partner Support
> Get Secure! -
www.microsoft.com/security > This posting is provided "as is" with no warranties and confers no rights.
>