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

RadGridView.Rebind() does not work with single row

2 Answers 139 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mark
Top achievements
Rank 1
Mark asked on 14 Mar 2011, 02:48 PM
We currently have a call in one of our ViewModels that calls to RefreshGrid inside of our View that happens after an update to the properties of one of the records inside of the RadGridView.  RefreshGrid  just calls RadGridView.Rebind().  If there is only one row inside of the RadGridView, it does not actually update any of the columns with the new data, event though the appropriate changes have been made in the database.  If we have two rows, everything functions as expected with the correct columns getting their updated information.  Any ideas?

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 17 Mar 2011, 02:26 PM
Hello Mark,

I was tying different ways to reproduce the erroneous behavior mentioned by you but with no success so far.  I am attaching the simplest of applications I have tried with. It has a RadGridView with a single row and two buttons to change the value and to rebind the GridView.

Any hints on how to reproduce the problem will be appreciated. Also there is a chance the problem may be not related to RadGridView.  Have you tried replacing it with other databound control to see what happens ?

Kind regards,
Pavel Pavlov
the Telerik team
0
Mark
Top achievements
Rank 1
answered on 18 Mar 2011, 04:40 PM
Hi Pavel,

Thanks for taking the time to help me look into this!  Upon further testing, it looks to not be a bug with the Rebind, but a bug with  what happens before it in our code.  Thanks for your help!
Tags
GridView
Asked by
Mark
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Mark
Top achievements
Rank 1
Share this question
or