The problem i\'m stuck with is related to checkbox in DataGrid(WPF). I\'ve attached th
In your XAML Datagrid add:
In your code add:
var ckbox = sender as CheckBox;
var All = Collection.View.SourceCollection as List;
if (ckbox.IsChecked)
{
foreach (var item in All)
item.Marked = true;
}
else
{
foreach (var item in All)
item.Marked = false;
}
Collection.View.Refresh();
NOTE: The sender is CheckBox