This is a migrated thread and some comments may be shown as answers.

Default check and selection in RadGridView

0 Answers 18 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sancho
Top achievements
Rank 1
Sancho asked on 16 Nov 2011, 02:59 PM
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 ?

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Sancho
Top achievements
Rank 1
Share this question
or