現時点では、次のものがあります。
<DataGridTextColumn Header="Customer Name"
x:Name="columnCustomerSurname"
Binding="{Binding Path=Customer.FullName}" SortMemberPath="Customer.Surname"
IsReadOnly="True">
</DataGridTextColumn>
は次のようにCustomer.FullName
定義されます。
public string FullName
{
get { return string.Format("{0} {1}", this.Forename, this.Surname); }
}
バインディングは機能しますが、理想的ではありません。
誰かがForename
またはSurname
プロパティを更新した場合、その更新は更新されるまで DataGrid に反映されません。
私はMultiBinding
これに似た問題を見つけましTextBlock
たDataGrid
.
これを機能させる別の方法はありますか?