DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 22 Aug 2007 18:17:26 +0100,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Simon


Pager bar disappears when using two GridViews on a single page   
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>
                  </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>
                  </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>
                  </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>
Date:Wed, 22 Aug 2007 18:17:26 +0100   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us