Home Forums WPF controls Xceed DataGrid for WPF Resource Not Found Exceptions

Viewing 4 posts - 31 through 34 (of 34 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064

    The converter is not being called. The same happens when I click on a cell.

    It appears the only way to get the value to send back to the data model is to tab away or use the keyboard.

    Do you not get the same problem on the demo you sent me?

    Cheers,
    Neil

    Imported from legacy forums. Posted by nmosafi (had 852 views)

    User (Old forums)
    Member
    Post count: 23064

    Also, it seems changes are not propagated back until you click on another row. This especially a problem when there is only one row in the grid, as it is impossible to save the changes!

    Clicking on another control on the form doesn’t seem to do this either – you have to actually click another row on the grid.

    Cheers
    Neil

    Imported from legacy forums. Posted by nmosafi (had 843 views)

    User (Old forums)
    Member
    Post count: 23064

    You need to specify UpdateSourceTrigger=PropertyChanged on the Binding that is used in the CellEditor:
    <hr>
    <code>
    <xcdg:CellEditor.EditTemplate>
    <DataTemplate>
    <xcd:AutoSelectTextBox Text=”{Binding RelativeSource={RelativeSource FindAncestor,
    AncestorType=xcdg:Cell},
    Path=ActualContent,
    <b>UpdateSourceTrigger=PropertyChanged,</b>
    Converter={StaticResource decimalConverter}}” />
    </DataTemplate>
    </xcdg:CellEditor.EditTemplate>
    </code>
    <hr>

    I apologize, I had forgotten to include this in the sample code I posted…

    Imported from legacy forums. Posted by Pascal (had 854 views)

    User (Old forums)
    Member
    Post count: 23064

    Thanks Pascal, it’s working fine now.

    I managed to fix the other issue too, by manually firing the EndEdit command

    Cheers
    Neil

    Imported from legacy forums. Posted by nmosafi (had 21552 views)

Viewing 4 posts - 31 through 34 (of 34 total)
  • You must be logged in to reply to this topic.