Declined
Last Updated: 19 Aug 2016 11:44 by ADMIN
Jared
Created on: 02 Aug 2016 20:50
Category: GridView
Type: Bug Report
2
RadGridView.SelectionMode set to CellSelect doesn't populate SelectedRows collection
When you set a RadGridView's SelectionMode to GridViewSelectionMode.CellSelect and then you highlight full rows by using the row header, the SelectedRows collection is empty.  Telerik support informed me this is "as expected" and that I should use "SelectedCells" collection when using the CellSelect Mode.  While this is a decent workaround I don't see why SelectedRows collection can't be filled when the entire row is actually highlighted.  
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
4 comments
ADMIN
Stefan
Posted on: 19 Aug 2016 11:44
Item is declined until further information is provided.
ADMIN
Stefan
Posted on: 05 Aug 2016 07:53
Hi Jared,

I have tested the standard grid in CellSelect mode and its SelectedRows collection is not filled as well, so we behave the same.

Still, you can always iterate the SelectedSell and check if you have full rows selected easily.
Jared
Posted on: 03 Aug 2016 15:00
Anytime someone wants to use the SelectedRows property when SelectionMode is set to GridViewSelectionMode.CellSelect.  Often times in our desktop app our users are accustomed to selecting rows they want to perform an action on, such as run a report, and click a button.  The native WinForms DataGridView allowed selecting multiple cells within the grid and also full rows.  I've lost that functionality since I converted our most used grid to the Telerik RadGridView.  
ADMIN
Stefan
Posted on: 03 Aug 2016 14:45
Hi Jared,

can you please provide a use case, where such functionality is needed?