I\'ve set the itemsource of my WPF Datagrid to a List of Objects returned from my DAL. I\'ve also added an extra column which contains a button, the xaml is below.
Another way which binds to command parameter DataContext and respect MVVM like Jobi Joy says button inherits datacontext form row.
Button in XAML
Command implementation
public void Execute(object parameter) { if (parameter is MyObject) { } }