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

RadGridView.SelectedRows.Count Bug?

3 Answers 199 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Judy
Top achievements
Rank 1
Judy asked on 25 Jun 2008, 06:56 PM
Forgive me if this issue has been raised before. 

I've got a RadGridView (Q2 2008) bound to an object datasource.  On initial display of the RadGridview, there are no rows because I'm forcing the user to enter some search criteria before the grid is populated.  In its initial state, SelectedRows.Count = 0.  Correct.  If the user then enters search criteria that returns rows, the grid is rebound and the first row is selected thus setting SelectedRows.Count = 1.  Correct again.

If the user then changes the search criteria and that criteria returns no rows, the grid is rebound and no rows appear just as it should.  However, SelectedRows.Count still = 1.  Not correct.  This appears to be a bug to me.  Is it?

3 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 27 Jun 2008, 01:45 PM
Hi Judy,

Thank you for the reporting this issue.

We will address it for the Q2 2008 release planned for the end of July. Currently, you may use the Clear method to reset the SelectedRows collection.

Your Telerik points have been updated. Contact me again if you need any further assistance.

Sincerely yours,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ab
Top achievements
Rank 1
answered on 04 Jun 2013, 04:24 PM
v.2013.1.321.40 This bug persists

2 records selected - count = 1
3 records selected - count = 2
and so on ...

Is there a workaround / patch / fix for this?
0
Peter
Telerik team
answered on 07 Jun 2013, 02:40 PM
Hello Ab,

Thank you for writing.

I was not able to reproduce the described behavior on my side. Please, refer to the attached screenshot from my attempts. It seems that there is something specific that I am missing. Could you send a sample project that reproduce the issue. It will help me understand what causes it and help you resolve it.

I am looking forward to your reply.

Regards,
Peter
Telerik
RadChart for WinForms is obsolete. Now what?
Tags
GridView
Asked by
Judy
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Ab
Top achievements
Rank 1
Peter
Telerik team
Share this question
or