SelectedRows is nothing

2 posts, 0 answers
  1. Jane Grant
    Jane Grant avatar
    3 posts
    Member since:
    Dec 2007

    Posted 24 Jul 2013 Link to this post

    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
  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3894 posts

    Posted 29 Jul 2013 Link to this post

    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 >>
Back to Top