0

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

Fernando
  • 436
  • 4
  • 13

1 Answers1

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

You have to ensure that B property is not null.

Jacob Seleznev
  • 8,013
  • 3
  • 24
  • 34