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

Gridview Row Marque

1 Answer 126 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 11 Jan 2013, 10:57 AM
Hi, I have a problem with the gridView in that when I set the SelectedItem property via my view model the grid highlights the full row even though the selectionunit of the grid is set to cell. I was expecting the grid to just select the first column in the row, rather than the full row. If you click on the row in question the highlight is cleared and the selected cell highlighted. Can the SelectItem property not be used when the selectionunit is set to cell?

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 14 Jan 2013, 12:23 PM
Hello Steve,

Let me try to explain how the selection modes in the GridView work. 
The RowSelection, a.k.a. ItemSelection is done on data level, meaning you have a whole selected item under the slected row/rows. When you have SelectionMode set to Cells/Mixed, and you have a selected item, all the cells from that row are getting selected. 
On the other hand, the Cell Selection is not directly related to the selected item, meaning, if you have a selected cell, the item of the row that the cell is in, doesn't have to be selected. 

Hope this helps! 

All the best,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Steve
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or