DATAGRID的集中功能!!(aspx页)[1]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 sichuanpb 的 blog

 <%@ page language="c#" codebehind="ygdz_xianlist.aspx.cs" autoeventwireup="false" inherits="ygdzwww.webform1" %>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en" >
<html>
 <head>
  <title>浏览行政县信息</title>
  <meta http-equiv="content-type" content="text/html; charset=gb2312">
  <meta content="microsoft visual studio .net 7.1" name="generator">
  <meta content="c#" name="code_language">
  <meta content="javascript" name="vs_defaultclientscript">
  <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetschema">
 </head>
 <body ms_positioning="gridlayout">
  <form id="form1" method="post" runat="server">
   <asp:datagrid id="datagrid1" style="z-index: 101; left: 232px; position: absolute; top: 128px"
    runat="server" pagesize="6" allowpaging="true" autogeneratecolumns="false" bordercolor="#e7e7ff"
    borderstyle="double" borderwidth="1px" backcolor="white" cellpadding="3" gridlines="horizontal"
    width="376px" datakeyfield="b010101">
    <selecteditemstyle font-bold="true" forecolor="#f7f7f7" backcolor="#738a9c"></selecteditemstyle>
    <alternatingitemstyle backcolor="#f7f7f7"></alternatingitemstyle>
    <itemstyle forecolor="#4a3c8c" backcolor="#e7e7ff"></itemstyle>
    <headerstyle font-bold="true" forecolor="#f7f7f7" backcolor="#4a3c8c"></headerstyle>
    <footerstyle forecolor="#4a3c8c" backcolor="#b5c7de"></footerstyle>
    <columns>
     <asp:templatecolumn headertext="选择">
      <itemtemplate>
       <asp:checkbox id="chk" enabled="true" runat="server" />
      </itemtemplate>
     </asp:templatecolumn>
     <asp:boundcolumn datafield="b010101" visible="false">
      <itemstyle horizontalalign="center"></itemstyle>
     </asp:boundcolumn>
     <asp:templatecolumn headertext="行政县代码">
      <itemtemplate>
       <a href="ygdz_xianedit.aspx?sxiancode=<%#databinder.eval(container.dataitem,"b010101")%>&sxianname=<%#databinder.eval(container.dataitem,"b010102")%>" style="text-decoration: none" ><%#databinder.eval(container.dataitem,"b010101")%></a>
      </itemtemplate>
     </asp:templatecolumn>
     <asp:templatecolumn headertext="行政县名称">
      <itemtemplate>
       <a href="ygdz_xianedit.aspx?sxiancode=<%#databinder.eval(container.dataitem,"b010101")%>&sxianname=<%#databinder.eval(container.dataitem,"b010102")%>" style="text-decoration: none"><%#databinder.eval(container.dataitem,"b010102")%></a>
      </itemtemplate>
     </asp:templatecolumn>
     <asp:boundcolumn datafield="b000006" headertext="是否失效">
      <itemstyle horizontalalign="center"></itemstyle>
     </asp:boundcolumn>
    </columns>
    <pagerstyle visible="false" nextpagetext="下一页" prevpagetext="上一页" horizontalalign="righ

本文关键:DATAGRID的集中功能!!(aspx页)
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top