This is WinForms BTW:
... just say I have an object that is like this:
vb Code:
Public class Address
Public Property UnitNo as integer
Public Property HouseNo as integer
Public Property Street as string
'....
end class
Public class Person
Public Property FirstName as string
Public Property Address as new Address
End Class
Just wondering if it's possible to bind to the Persons.street in a data repeater??
The following works fine ... until it's in a data repeater and then it doesn't work:
vb Code:
TextBox1.DataBindings.Add(New Binding("Text", bs, "Address.Street", False, DataSourceUpdateMode.OnPropertyChanged))
...Also the same also seems to apply for sub controls in a data repeater... (in the case below MyTestControl is a control on the data repeater that exposes TextBox1 that is on it this applies when you don't try to bind to a sub property on the bs):
vb Code:
MyTestControl.TextBox1.DataBindings.Add(New Binding("Text", bs, "FirstName", False, DataSourceUpdateMode.OnPropertyChanged))
Any ideas? ... This is really frustrating@!
Thanks,
Regards,
Kris