Perintah diperiksa datagrid wpf

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