Re: [ADVANCED-DOTNET] windows forms data bind to complex property

2004-09-29 Thread J. Merrill
I for one appreciate your taking the time to build (or at least to paste in) a real sample, rather than talking in general terms as so many of us do in this group. On a completely different topic (one that I fear could start a religious debate), is there a public guideline suggesting that the fo

Re: [ADVANCED-DOTNET] windows forms data bind to complex property

2004-09-29 Thread Luis Abreu
Hello Alexander. Thanks a lot. -- Regards, Luis Abreu email: labreu_at_gmail.com http://weblogs.pontonetpt.com/luisabreu http://www.pontonetpt.com http://weblogs.pontonetpt.com/ === This list is hosted by DevelopMentorĀ® http://www.develop.com Some .NET courses

Re: [ADVANCED-DOTNET] windows forms data bind to complex property

2004-09-28 Thread Alexander Shirshov
Luis, You want to bind a column in the grid to "T" property of "B", right? It's possible using custom ITypedList implementation and a class derived from PropertyDescriptor. I wrote a sample for you. It binds one column of the grid to "Foo.Name" and the second -- to "Foo.Bar.Name". It's fully worki

Re: [ADVANCED-DOTNET] windows forms data bind to complex property

2004-09-28 Thread Luis Abreu
Hello Drew, > No, but you can do it with manual configuration of Binding instances. So for > instance, if you throw a text box on your form real quick and do the > following, you'll see that it binds just fine (you can control the position > of the CurrencyManager by selecting a diff. row in the

Re: [ADVANCED-DOTNET] windows forms data bind to complex property

2004-09-28 Thread Marsh, Drew
Luis Abreu wrote: > Hello. > > ok, suppose you have class A, which has a property named classb of > type ClassB. ClassB also has a property named T. > > class A > { > public ClassB classB {...} > } > > class B > { > public string T; > } > > > Now let's suppose that I have an array or a colle