Hi, I am trying to implement a button where when it is clicked it will check all the checkboxes in my sfDataGrid's checkbox column. I used the following code below but the sfdatagrid does not update when I click the button.
var model= (ViewModel)sfdatagrid.DataContext;
//model.Orders.Clear();
for(int i = 0; i < model.Orders.Count; i++)
{
model.Orders[i].Selected = true;
}
Here, the .Selected property is a boolean which the checkbox column is bound to. Note that model.Orders.Clear() is able to delete all entries in the datagrid, but changing the property through model.Orders[i] do not work.
Thanks!