I have a WPF DataGrid
bound to a collection of Entity Framework
objects that s inside a parent EF object. Something along the lines of:
<DataGrid ItemsSource="{Binding SelectedCustomer.Orders}" />
Now when I want to "delete" an Order, I don t want to actually delete it from the data source, I simply want to set its IsDeleted
property to true so the data is retained.
我的问题是:我如何能够获得我的<条码>DataGrid,如果它有<条码>,不动产是真实的? 我真的希望使用具有约束力的而不是表面上。 与此相仿的是:
<DataGrid ItemsSource="{Binding SelectedCustomer.Orders}" RowVisibilityPath="IsDeleted" />
遵循<代码> • 显示成员Path。 我认识到,我需要改写<代码> 待删除的<>代码/代码>,但这是一个不同的议题。
Any ideas?