private void chkSelectAll_Click(object sender, RoutedEventArgs e) { if (chkSelectAll.IsChecked.Value == true) { UserGrid.SelectAll(); } else { UserGrid.UnselectAll(); } }