Home › Forums › WinForms controls › Xceed Grid for WinForms › Binding to properties of sub-objects
Can I have a row showing first and last name of a person object and on the same row showing the address information from the person’s address object.
Person.FirstName, Person.LastName, Person.Address.Street, Person.Address.ZIP
Is this possible, it is with the janusys grid
Imported from legacy forums. Posted by Martin (had 1784 views)
This will not be possible directly if the fields are not from the same table. You can however create a DataView from the tables that includes these fields, and bind the grid to it.
Another solution would be to use an unbound grid, and feed the data yourself to the grid from the tables (through the DataSet containing both tables).
Imported from legacy forums. Posted by André (had 3199 views)