Hiakhter,
You might be binding the gridviews inside the not IsPostBackcondition.
So either you need to bind outside the not IsPostBack or inside the Timer1_Tick event rebind the GridView.
Check the below example.
HTML
<h4>
<asp:TextBox ID="txtitempbstart" Visible="false" runat="server" TextMode="Date"></asp:TextBox>
<asp:TextBox ID="txtitempbend" runat="server" Visible="false" TextMode="Date"></asp:TextBox>
<asp:TextBox ID="txtstart" runat="server" Visible="false" TextMode="Date"></asp:TextBox>
<asp:TextBox ID="txtend" Visible="false" runat="server" TextMode="Date"></asp:TextBox>
</h4>
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer1_Tick"></asp:Timer>
<div>
<asp:UpdatePanel ID="Panel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Label ID="lblTime" runat="server" />
:
<asp:Label ID="lbFFloor" Visible="false" runat="server" BackColor="#FF9966" BorderColor="#00FF99" BorderWidth="0px" Font-Bold="True" Font-Size="XX-Large" Height="0px" Text="." Width="0px">
</asp:Label>
<asp:Label ID="SFloor" runat="server" Visible="false" BackColor="#FF9966" BorderColor="#00FF99" BorderWidth="0px" Font-Bold="True" Font-Size="XX-Large" Height="0px" Text="." Width="0px"></asp:Label>
<br />
<br />
Section Wise Total Smal Bale Section Wise Total Big Bale </p>
<table class="auto-style1">
<tr>
<td class="auto-style2"> </td>
<td>
<asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="false">
<Columns>
<asp:BoundField DataField="CustomerId" HeaderText="Customer Id" />
<asp:BoundField DataField="ContactName" HeaderText="Contact Name" />
<asp:BoundField DataField="Country" HeaderText="Country" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:constr %>"
SelectCommand="SELECT TOP 5 * FROM Customers ORDER BY NEWID()"></asp:SqlDataSource>
</td>
</tr>
<caption>
</caption>
</table>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" />
</Triggers>
</asp:UpdatePanel>
</div>
<p>
</p>
Code
protected void Page_Load(object sender, EventArgs e)
{
lblTime.Text = "Last Refreshed: " + DateTime.Now.ToString();
if (!IsPostBack)
{
GridView1.DataBind();
}
}
protected void Timer1_Tick(object sender, EventArgs e)
{
// Re-bind the GridView to refresh the data.
GridView1.DataBind();
}