私はWPF DataGrid
、
私が持っているプロパティを持つ(編集されたセル)bind
のテキストが欲しいCurrentCell
ViewModel
これを行うことは可能ですか?
編集:
私はこの方法を試します:
<DataGrid CurrentCell="{Binding MyProp}"...../>
私はこのエラーを受け取ります:
Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=MyProp; DataItem='MyViewModel' (HashCode=38365672); target element is 'DataGrid' (Name='CustomCmdDg'); target property is 'CurrentCell' (type 'DataGridCellInfo')