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

RadGrid refreshing on Delete, but not Insert

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 05 Jul 2011, 06:57 AM
I have a radgrid which is inside a nestedview. It has an autogenerated Delete button....when clicked, it works great and the grid is refreshed. However, when I "Insert" a new record, the DB is correctly updated but the grid is not refreshed. If I click the refres button on the grid, then all is well again.

Can someone explain why this might happen, and how I might fix it?

Thanks

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Jul 2011, 07:06 AM
Hello Paul,

RadGrid will automatically refresh after Edit/Delete operation if you are binding the grid using NeedDataSource event.Anyway you can refresh the RadGrid by calling the RadGird1.Rebind() method.

Hope this might help you.
Thanks,
-Shinu
Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or