Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

datagridview bound to custom object

Status
Not open for further replies.

sillysod

Technical User
Jan 6, 2004
300
GB
I have a custom object which has several properties

i can bind to all the properties which are simple strings etc no problem

im struggling however where i have a property which is another custom object for example

if i had a collection of "Cars" and a car had the following properties

Make
Model
Reg
Owner

make / model / reg being strings and owner being of type "Person", and a "Person" had the following properties

Name
Age
Gender

When i bind the Cars collection to a datagridview i want the owner column to show the owners name, at the moment it will only show the name of owner object

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top