Home Forums WinForms controls Xceed Grid for WinForms Binding to properties of sub-objects

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #15403 |

    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)

    User (Old forums)
    Member
    Post count: 23064

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.