脚本

DataGrid双标题<asp:DataGrid id="dgDoubleHeader" runat="server" AllowPaging="True" AutoGenerateColumns="False"
DataGrid双标题                Width
="100%" PageSize="5" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" BackColor="White"
DataGrid双标题                CellPadding
="4" GridLines="Horizontal">
DataGrid双标题                
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#339966"></SelectedItemStyle>
DataGrid双标题                
<ItemStyle ForeColor="#333333" BackColor="White"></ItemStyle>
DataGrid双标题                
<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#336666"></HeaderStyle>
DataGrid双标题                
<FooterStyle ForeColor="#333333" BackColor="White"></FooterStyle>
DataGrid双标题                
<Columns>
DataGrid双标题                    
<asp:BoundColumn DataField="FirstName" HeaderText="FirstName"></asp:BoundColumn>
DataGrid双标题                    
<asp:BoundColumn DataField="LastName" HeaderText="LastName"></asp:BoundColumn>
DataGrid双标题                    
<asp:BoundColumn DataField="HomePhone" HeaderText="HomePhone"></asp:BoundColumn>
DataGrid双标题                    
<asp:BoundColumn DataField="City" HeaderText="City"></asp:BoundColumn>
DataGrid双标题                    
<asp:BoundColumn DataField="PostalCode" HeaderText="PostalCode"></asp:BoundColumn>
DataGrid双标题                
</Columns>
DataGrid双标题                
<PagerStyle HorizontalAlign="Center" ForeColor="White" Position="TopAndBottom" BackColor="#336666"
DataGrid双标题                    Mode
="NumericPages"></PagerStyle>
DataGrid双标题            
</asp:DataGrid>
代码
DataGrid双标题        protected System.Web.UI.WebControls.DataGrid dgDoubleHeader;
DataGrid双标题        
//用来判断两个(上下)Pager的位置
DataGrid双标题
        private bool upPager  = true;

DataGrid双标题        private void DataGridDataBind()
        }
DataGrid双标题        private void Page_Load(object sender, System.EventArgs e)
        }
DataGrid双标题        private void dgDoubleHeader_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
        }
DataGrid双标题        private void dgDoubleHeader_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
        }

相关文章:

  • 2021-11-17
  • 2022-02-11
  • 2022-02-11
  • 2022-12-23
  • 2022-01-31
  • 2021-08-08
  • 2021-12-12
猜你喜欢
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案