Bind Complex Custom Business Object to DataGrid

S

Stuart Whiteford

Guys,

Still fairly new to ASP.NET. I want to bind a collection of (what I
think are) fairly complex Business Objects to a DataGrid.

The properties of the Object (called Company) look something like this
(I have a separate class for Address):

Company.ID
Company.Title
Company.Address.Street
Company.Address.Town
Company.Address.PostCode
Company.TelNo

If I bind a collection of Companies to the DataGrid I can access the
properties directly associated with Company (ID, Title, TelNo) but I
can't figure out how to get the properties of the Company's Address.

Any thoughts?

TIA,
Stuart.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top