I hava a model that contains IsSelected Property, and I want to bind the row IsSelected of gridview to that IsSelected, what should i do?
class MyClass
{
public bool IsSelected { get; set; }
}
private BindingSource _bindingSource;
private List<MyClass> _myClassList;
private RadGridView _gridView;
private void DataBinding()
{
_bindingSource = new BindingSource { DataSource = _myClassList };
// how to bind _gridView.Rows.IsSelected to _myClassList.IsSelected?
_gridView.DataSource = _bindingSource;
}