I am not familiar with WPF, but does wpfdatagrid TemplateField or any other related structure?
If so, you can do it like this:
<ItemTemplate> <asp:Literal ID="Literal4" runat="server" Text='<%# (Decimal.Parse(Eval("Score1")) - Decimal.Parse(Eval("Score2")) %>'> </asp:Literal> </ItemTemplate>
NOTE This code is for Gridview . This does not work on wpfdatagrid , but it may give you an idea.
source share