Relative Content

Tag Archive for wpfbindingdatagrid

WPF DataGrid and Delete Button

`So I am trying to use the DataGrid and create a Column Template to add a delete button. The problem is that the row is databound to a record that in my observableCollection, but the binding of the button has to be bound to the viewmodel and not to the object of the row. if a datacontext is added to the button, then the button will fire. However the SelectedValue for the Grid that is bound to a property ends up null if that is done.