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

SelectedRows is nothing

1 Answer 100 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jane Grant
Top achievements
Rank 1
Jane Grant asked on 25 Jul 2013, 12:12 AM
Hello,

We are using Rad Controls Professional Q2 2013. We have a radgridview on a radform that is returning the incorrect selectedrows information.

When the user selects a single row and clicks 'OK', the radgridview.selectedrows property returns a value of nothing. When the user selects multiple rows and clicks 'OK', the selectedrows property returns all selected rows except the the last selected row.

The selectionMode is set to FullRowSelect, and multiSelect is set to True.

When we changed the selectionMode to CellSelect and interrogated the radgridview.selectedcells property, the results were correct. This workaround, however, is not suitable for other radgridviews in our project.

Please advise if there is a fix for this problem.

Many thanks,
Jane

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 29 Jul 2013, 04:52 PM
Hello Jane,

Thank you for contacting Telerik Support.

I have tried to reproduce your problem without any success. Please, find the attached sample project containing a RadGridView (with Multiselect) and a RadButton, which click event correctly gets the selected rows:
GridViewSelectedRowsCollection selectedRows = this.radGridView1.SelectedRows;

Could you please provide your project reproducing the described issue? 
Thank you in advance.

Regards,
Desislava
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Jane Grant
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or