Gridview inside UpdatePanel refresh
Posted
by Attilah
on Stack Overflow
See other posts from Stack Overflow
or by Attilah
Published on 2010-03-29T11:41:35Z
Indexed on
2010/03/29
12:53 UTC
Read the original article
Hit count: 172
I use a GridView to represent data from a table in my DB.
the GridView has some template fields whose content are determined before displaying the Grid ( I use the RowDataBound event to determine content of template fields before displaying the GridView).
The page displays a list of records from the table records and then, the recording process starts. after the process is over, the template fields should be updated.
how do I automatically refresh the GridView after the process is finished ? it should be noted that the GridView is contained within an control and that I continuously poll the server using a Timer control that executes "GridView1.DataBind()" at the server level every 60 seconds.
since the GridView is inside an UpdatePanel, calling DataBind() method on it doesn't seem to call the RowDataBound event.
How can I solve this ?
© Stack Overflow or respective owner