Home Forums WPF controls Xceed DataGrid for WPF Bug: Editing with DisplayMemberBinding not working

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

    I have a very serious problem. I am binding a very rich hierarchical object across a single row of the grid. Because of that I can’t turn on autocreatecolumns. Instead I have to create each column and set the DisplayMemberBinding to a path like:
    {Binding Path=WorkOrder.Description,Mode=OneWay}
    or
    {Binding Path=WorkWeekHours.SaturdayHours.OvertimeHours}
    or
    {Binding Path=WorkWeekHours.TotalRegularHours}.
    That was all working fine, until I wanted those columns to be editable. For some reason the CellEditor is not honored if the DisplayMemberBinding is set. I have tried fiddling with
    CellEditorDisplayConditions and EditTriggers, but as long as the DisplayMemberBinding is set, the editor is not displayed.

    Can someone please help me work around this problem?

    Imported from legacy forums. Posted by scottr (had 2527 views)

    User (Old forums)
    Member
    Post count: 23064

    You need th make the binding to be “TwoWay”

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

    User (Old forums)
    Member
    Post count: 23064

    That did the trick, thanks!

    Imported from legacy forums. Posted by scottr (had 3422 views)

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