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

Rebind/Refresh RadGrid on UpdateCommand

2 Answers 246 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sravanthi
Top achievements
Rank 1
Sravanthi asked on 10 Aug 2012, 05:59 PM
I have a Radgrid with Advacned Data Binding. In the Update Command, If a column is changed, I have to change values of other rows too. I am handling the updates in a sql statement. However, after Update button is clicked, it only refreshes the current row and not the whole grid. I want to Refresh or REbind the whole grid on Update Command.

Tried adding inside UpdateCommand, but its not working,

UpdateRecords();
 e.Canceled = true;
RadGrid1.Rebind();

Also, I need to do the same on Insert Command too.

Thanks,
Sri!!!

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Aug 2012, 01:10 PM
Hi,

When you are using Advanced data binding, the grid will automatically refresh after insert/update operation. Make sure that you have not set AllowAutomaticUpdates as true.

Thanks,
Shinu.
0
Sravanthi
Top achievements
Rank 1
answered on 13 Aug 2012, 02:06 PM
I have already tried setting AllowAutomaticUpdates to false. The Current Row where the insert/update happens is Refreshing, I want the whole grid's data to be refreshed.

Thanks
Sri
Tags
Grid
Asked by
Sravanthi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Sravanthi
Top achievements
Rank 1
Share this question
or