comando datagrid wpf verificado
<CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType= {x:Type Window}},
Path=DataContext.UpdateCommand}"/>
Sore Stork