Hi,
I wish to disable the row selection checkbox for rows based on content criteria.
I'm binding with an observable collection of objects that implement INotifyPropertyChanged.
Let's say that each object has a CanSelect boolean property.
What is the best way to disable the checkbox?
I've tried:
I wish to disable the row selection checkbox for rows based on content criteria.
I'm binding with an observable collection of objects that implement INotifyPropertyChanged.
Let's say that each object has a CanSelect boolean property.
What is the best way to disable the checkbox?
I've tried:
private
void myGrid_RowLoaded(object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e) {
var theObject = e.DataElement as TheObject;
if (theObject != null)
{
e.Row.Cells[0].IsEnabled = theObject.CanSelect;
}
}
This doesn't work, since I can select disabled checkboxes, because I can select the row by clicking it.
Kind regards,
Jurjen