views:

215

answers:

1

Hello, I have an entity with others entities inside. Per example, Entity A has entities B and C.

So, I want to show in a text box the value of A.B.SomeProperty when I set a datasource for bindindsource. Is it possible with a workaround? tks

+1  A: 
textBox.DataBindings.Add("Text", bindingSource, "B.SomeProperty");

You have to ensure that B property is not null.

Jacob Seleznev