If you want to refresh your GridView, then you can use Timer control with Updatepanel,
For that you have to take one UpdatePanel and in that panel you have to GridView and Timer control.
Now set Timer enable property to true and set Interval for that timer,
Use following code-
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Timer ID="Timer1" runat="server" Enabled="true" Interval="1000">
</asp:Timer>
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="false" HorizontalAlign="Right">
<Columns>
<asp:BoundField HeaderText="Message" DataField="Empid" Visible="false" ReadOnly="true" />
<asp:TemplateField HeaderText="EmpName">
<ItemTemplate>
<asp:Label ID="lblMessage" runat="server" Text=' <%# Eval("EmpName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Salary">
<ItemTemplate>
<asp:Label ID="lblSalary" runat="server" Text=' <%# Eval("Salary") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
NOW CODE TO BIND DATA TO GRIDVIEW CONTROL IN TICK EVENT OF TIMER.
protected void Timer1_Tick(object sender, EventArgs e)
{
//CODE FOR BINDING GRIDVIEW
}
Now after every 1000 ms gridview will be refreshed().
USE THIS CODE AND LET ME KNOW.