I'm assuming you just need to change it once for the view?
Depending on how much data you have, the simplest way to implement would be to expand your data in the model into e.g. a List<>
, then make the modification and bind your control to that list.
var people = myDataSource.ToList(); // a LINQ extension - you may need a 'using'
var bob = people.FirstOrDefault(p => p.Name == "Bob");
if (bob != null)
{
bob.isChecked = true;
}
Alternatively, and probably better, would be to make the change on-the-fly using e.g. a Select()
var peopleWithBobTicked = myDataSource.Select(
p => {
if (p.Name == "BoB") p.isTicked = true;
return p;
});