Pager bar disappears when using two GridViews on a single page

S

Simon

Hi everyone,

Can anyone think why using two GridViews on a single web page would
cause the pager at the bottom of one of them to disappear.

The use case is, if I click a different page on the first datagrid, and
then click a different page on the second datagrid, the pager at the
bottom of the *first* datagrid disappears!

I suspect that they are somehow confusing one another but I dont know
how. Can anyone offer any suggestions as to why the pager is getting hidden?

Many thanks to anyone who can help.

Simon

PS. If it helps, the page code is below - apologies if it doesn't format
very well

************************************************************************

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="Pages_Logging_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Import Logs</title>
<link href="../../Styles/Main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div id="ContentArea">
<h1>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
PAMS Import Logs</h1>
<h2>Banner Importer</h2>
<p>
The import process is responsible for importing student
and application details from the XX system. The import process runs on a
nightly schedule. Details on the success or failure of each run can be
seen below.
</p>
<p>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="grdBannerImport" runat="server"
AllowPaging="True" AutoGenerateColumns="False"
DataKeyNames="ID" DataSourceID="odsBannerImportLog"
BorderStyle="None" Width="75%"
OnRowDataBound="grdBannerImport_RowDataBound" GridLines="Vertical">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Image ID="imgStatus"
runat="server" ImageUrl="~/Images/BallGreen16.gif" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Timestamp"
HeaderText="Timestamp" SortExpression="Timestamp" />
<asp:BoundField DataField="ApplicationName"
HeaderText="Application Name" SortExpression="ApplicationName" />
<asp:BoundField DataField="Message"
HeaderText="Message" SortExpression="Message" />
<asp:BoundField DataField="OutcomeTypeName"
HeaderText="Outcome" SortExpression="OutcomeTypeName" />
</Columns>
<HeaderStyle BackColor="#2E2E2E" Font-Bold="False"
ForeColor="White" HorizontalAlign="Left" />
<AlternatingRowStyle BackColor="#FAF9F9" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
&nbsp;</p>
<p>
<asp:ObjectDataSource ID="odsBannerImportLog"
runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="SelectByApplicationIDPaged"
SelectCountMethod="SelectCountByApplicationID"
StartRowIndexParameterName="startRowIndex"
MaximumRowsParameterName="pageSize"

TypeName="ImportLogsDataSetTableAdapters.ImportExportLogTableAdapter"
EnablePaging="true">
<SelectParameters>
<asp:parameter Name="applicationID"
DefaultValue="501" Type="Int16"></asp:parameter>
</SelectParameters>
</asp:ObjectDataSource>
&nbsp;</p>

<h2>MBA Part 2 Importer</h2>
<p>
The XX import process is responsible for importing
details submitted via the XX webform into the PAMS CRM System. The
import process runs on a nightly schedule. Details on the success or
failure of each run can be seen below.
</p>
<p>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:GridView ID="grdMBAImportLog" runat="server"
AllowPaging="True" AutoGenerateColumns="False"
DataKeyNames="ID" DataSourceID="odsMBAImportLog"
BorderStyle="None" Width="75%" GridLines="Vertical"
OnRowDataBound="grdMBAImportLog_RowDataBound">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Image ID="imgStatus"
runat="server" ImageUrl="~/Images/BallGreen16.gif" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Timestamp"
HeaderText="Timestamp" SortExpression="Timestamp" />
<asp:BoundField DataField="ApplicationName"
HeaderText="Application Name" SortExpression="ApplicationName" />
<asp:BoundField DataField="Message"
HeaderText="Message" SortExpression="Message" />
<asp:BoundField DataField="OutcomeTypeName"
HeaderText="Outcome" SortExpression="OutcomeTypeName" />
</Columns>
<HeaderStyle BackColor="#2E2E2E" Font-Bold="False"
ForeColor="White" HorizontalAlign="Left" />
<AlternatingRowStyle BackColor="#FAF9F9" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
&nbsp;</p>
<p>
<asp:ObjectDataSource ID="odsMBAImportLog"
runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="SelectByApplicationIDPaged"
SelectCountMethod="SelectCountByApplicationID"
StartRowIndexParameterName="startRowIndex"
MaximumRowsParameterName="pageSize"

TypeName="ImportLogsDataSetTableAdapters.ImportExportLogTableAdapter"
EnablePaging="true">
<SelectParameters>
<asp:parameter Name="applicationID"
DefaultValue="502" Type="Int16"></asp:parameter>
</SelectParameters>
</asp:ObjectDataSource>
</p>

</div>
</form>
</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top