Hi,
I have a RadGridView, and I want some rows to be checked and selected by default when I load it, depending on the value of a binded object property.
I tried two different ways to to this :
- If I use a GridViewSelectColumn, I suceed to select the different row of my RadGridView, but I don't know how to implement this default selection. Indeed, this type of column doesn't enable to do databinding.
- If I use a GridViewDataColumn with a CellTemplate containing a checkbox, the rows are correctly checked depending on my property, but I don't know how to make those checked rows selected on. Indeed, it would be possible using the SetIsSelected property of the GridView which would be implemented on the Checked event of the checkbox, but this function requires the item to select, and I don't know how to get it from the Checkbox_Check function...
Do somebody have a solution ?
I have a RadGridView, and I want some rows to be checked and selected by default when I load it, depending on the value of a binded object property.
I tried two different ways to to this :
- If I use a GridViewSelectColumn, I suceed to select the different row of my RadGridView, but I don't know how to implement this default selection. Indeed, this type of column doesn't enable to do databinding.
- If I use a GridViewDataColumn with a CellTemplate containing a checkbox, the rows are correctly checked depending on my property, but I don't know how to make those checked rows selected on. Indeed, it would be possible using the SetIsSelected property of the GridView which would be implemented on the Checked event of the checkbox, but this function requires the item to select, and I don't know how to get it from the Checkbox_Check function...
Do somebody have a solution ?