博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
一个非常不错的gridview 风格
阅读量:6933 次
发布时间:2019-06-27

本文共 1553 字,大约阅读时间需要 5 分钟。

  1. <style type="text/css">
  2. <!--
  3. .datable {background-color: #9FD6FF; color:#333333; font-size:12px;}
  4. .datable tr {height:20px;}
  5. .datable .lup {background-color: #C8E1FB;font-size: 12px;color: #014F8A;}
  6. .datable .lup th {border-top: 1px solid #FFFFFF; border-left: 1px solid #FFFFFF;font-weight: normal;}
  7. .datable .lupbai {background-color: #FFFFFF;}
  8. .datable .trnei {background-color: #F2F9FF;}
  9. .datable td {border-top: 1px solid #FFFFFF; border-left: 1px solid #FFFFFF;}
  10. -->
  11. </style>

 

  1. <asp:GridView ID="GridView1" runat="server"  Width="1200px"  CssClass="datable" border="0" CellPadding="2" CellSpacing="1" OnRowDataBound="GridView1_RowDataBound" AutoGenerateColumns="False">
  2.                                                                 <RowStyle CssClass="lupbai" />
  3.                                                                 <HeaderStyle CssClass="lup" />
  4.                                                                 <AlternatingRowStyle CssClass="trnei" />
  5.                                                                 <Columns>
  6.                                                                     <asp:BoundField DataField="mac_id" HeaderText="登陆计算机">                                                                
  7.                                                                         <HeaderStyle Width="100px" />
  8.                                                                     </asp:BoundField>
  9.                                                                     <asp:BoundField DataField="u_id" HeaderText="用户代号">
  10.                                                                        <HeaderStyle Width="100px" />
  11.                                                                     </asp:BoundField>
  12.                                                                     <asp:BoundField DataField="op_time" HeaderText="时间" HtmlEncode="False">
  13.                                                                         <HeaderStyle Width="120px" />
  14.                                                                     </asp:BoundField>
  15.                                                                     <asp:BoundField DataField="op_system" HeaderText="字系统名称">
  16.                                                                        <HeaderStyle Width="120px" />
  17.                                                                     </asp:BoundField>
  18.                                                                     <asp:BoundField DataField="op_type" HeaderText="操作类型">
  19.                                                                         <HeaderStyle Width="120px" />
  20.                                                                     </asp:BoundField>
  21.                                                                     <asp:BoundField DataField="op_number" HeaderText="操作数量">
  22.                                                                         <HeaderStyle Width="50px" />
  23.                                                                     </asp:BoundField>
  24.                                                                     <asp:BoundField DataField="op_content" HeaderText="操作内容">
  25.                                                                         <HeaderStyle Width="400px" />
  26.                                                                     </asp:BoundField>
  27.                                                                 </Columns>
  28.                                                             </asp:GridView>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

你可能感兴趣的文章
从91移动应用发展趋势报告看国内应用现状
查看>>
jps could not synchronize with target
查看>>
Android系统在新进程中启动自定义服务过程(startService)的原理分析 (下)
查看>>
[RHEL5企业级Linux服务攻略]--第3季 DHCP服务全攻略
查看>>
《Pro ASP.NET MVC 3 Framework》学习笔记之五【依赖注入及ninject工具使用】
查看>>
综合应用WPF/WCF/WF/LINQ之三:采用用代码创建的方式实现CheckListBox的CustomControl
查看>>
【原创】用MySQL 生成随机密码-增加大写处理
查看>>
读源码Apache-commons-lang3-3.1(三)
查看>>
C#复制、粘贴文本信息到剪贴板
查看>>
单IP无TMG拓扑Lync Server 2013:边缘服务器
查看>>
WebService大讲堂之Axis2(8):异步调用WebService
查看>>
FlashBuilder(FB/eclipse) 打开多个无效
查看>>
广播的接收与处理
查看>>
理解Kubernetes(2): 应用的各种访问方式
查看>>
由浅入深CIL系列【目录索引】+ PostSharp AOP编程【目录索引】
查看>>
js禁止用户右键等操作
查看>>
oracle表空间压缩
查看>>
Apache Spark Jobs 性能调优
查看>>
C# HashTable的用法总结
查看>>
如何在本机搭建SVN服务器【转】
查看>>