Home Forums WPF controls Xceed DataGrid for WPF Displaying columns with hierarchical objects

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

    I have a grid with 3 columns bound to a collection. The first column is an object with 3 properties .

    When viewing I want the first column to show Property A but when editing, a control made up of Property B and C ( as A is readonly and derived from B and C)

    I’ve created 2 Datatemplates
    – a textbox bound to A, set as CellContentTemplate
    – a label bound to B and textbox bound to C, set as CellEditor

    BUT I don’t get anything displayed in either mode. The other 2 columns display fine

    Any ideas ?

    Imported from legacy forums. Posted by Matt (had 477 views)

    User (Old forums)
    Member
    Post count: 23064

    Why don’t you post your xaml and data model? We can get it from there

    Imported from legacy forums. Posted by nat (had 161 views)

    User (Old forums)
    Member
    Post count: 23064

    Thanks for your reply Testn. As usual I was missing something simple and took way too long finding it. I thought you had to put a full path i.e. Path=Object.property, once I realised all you needed was Path=Property it was OK. Sorry for delay in answering but I assumed the forum notified you automatically when people responded.

    Imported from legacy forums. Posted by Matt (had 3165 views)

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