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

Gridview Refresh

2 Answers 409 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Muhammad Arsal
Top achievements
Rank 2
Muhammad Arsal asked on 17 Jun 2014, 06:25 AM
i want to fire refresh event of gridview after inserting data in database without calling databind function because data bind function is not working up to my desire , i want to fire the event of refresh gridview immediately after inserting Data into database.
Thanks in Advance.

Regards,
Muhammad Arsal Khan

2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 17 Jun 2014, 06:02 PM
Hello,

You have to fire DataBind() method directly/indirectly to rebind/refresh grid.

If you want to do this thing forcefully then you have to bind data on clinet side or manually create Html element and assign to grid's mastertableview on client side.

Let me know if any concern.

Thanks,
Jayesh Goyani
0
Princy
Top achievements
Rank 2
answered on 18 Jun 2014, 03:41 AM
Hi,

RadGrid  will automatically refresh after Update/Insert/Delete operation if you binding the Grid in the NeedDataSource event. Are you using AdvanceDataBinding techniques?

Advanced Data Binding

Or you can explicitly refresh the Radgrid by calling RadGrid1.Rebind() method.

Please check this help documantation about the  internal grid commands which make an implicit call to the Rebind() method of RadGrid in order to refresh the control's content and fetch the latest information from the grid source.



Thanks,
Princy
Tags
Grid
Asked by
Muhammad Arsal
Top achievements
Rank 2
Answers by
Jayesh Goyani
Top achievements
Rank 2
Princy
Top achievements
Rank 2
Share this question
or