C#表格,表格信息、GridView使用。
page:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="test1.ascx.cs" Inherits="DotNetNuke.Modules.HRAddUser.test1" %>
<asp:Panel ID="panMain" runat="server">
<style type="text/css">
.GridHead th {
text-align: center;
}
</style> <table style="border: 1px solid #e1e0e0"> <tr>
<td>
<asp:GridView ID="gridTosInfoprs" runat="server" AutoGenerateColumns="False"
BackColor="White" BorderColor="#dfdede" BorderStyle="None" BorderWidth="1px"
CellPadding="3" CssClass="GridFont" GridLines="Vertical"
OnRowCreated="gridTosInfoprs_RowCreated"
Style="margin-top: 10px">
<PagerSettings Mode="NumericFirstLast" />
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<Columns>
<asp:BoundField HeaderText="序号" />
<asp:BoundField HeaderText="xx编号" DataField="xxxxNo(datatablecolumn)" />
<asp:BoundField HeaderText="xxx名称" DataField="xxxxxName" />
<asp:BoundField HeaderText="xxx金额" DataField="xxxReward" />
</Columns>
<RowStyle BackColor="#ffffff" ForeColor="Black" />
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<HeaderStyle BackColor="#0ea915" Font-Bold="True" ForeColor="White" CssClass="GridHead"/>
<AlternatingRowStyle BackColor="#f8f8f8" />
</asp:GridView>
</td>
</tr>
</table>
</asp:Panel>
Controller:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="test1.ascx.cs" Inherits="DotNetNuke.Modules.DataInfo.test1" %>
<asp:Panel ID="panMain" runat="server">
<style type="text/css">
.GridHead th {
text-align: center;
}
</style> <table style="border: 1px solid #e1e0e0"> <tr>
<td>
<asp:GridView ID="gridTosInfoprs" runat="server" AutoGenerateColumns="False"
BackColor="White" BorderColor="#dfdede" BorderStyle="None" BorderWidth="1px"
CellPadding="3" CssClass="GridFont" GridLines="Vertical"
OnRowCreated="gridTosInfoprs_RowCreated"
Style="margin-top: 10px">
<PagerSettings Mode="NumericFirstLast" />
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<Columns>
<asp:BoundField HeaderText="序号" />
<asp:BoundField HeaderText="xx编号" DataField="xxxxNo(datatablecolumn)" />
<asp:BoundField HeaderText="xxx名称" DataField="xxxxxName" />
<asp:BoundField HeaderText="xxx金额" DataField="xxxReward" />
</Columns>
<RowStyle BackColor="#ffffff" ForeColor="Black" />
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<HeaderStyle BackColor="#0ea915" Font-Bold="True" ForeColor="White" CssClass="GridHead"/>
<AlternatingRowStyle BackColor="#f8f8f8" />
</asp:GridView>
</td>
</tr>
</table>
</asp:Panel>
C#表格,表格信息、GridView使用。的更多相关文章
- 动态生成表格呈现还是将表格直接绑定gridview等控件呈现的开发方式选择依据
动态生成表格呈现还是将表格直接绑定gridview等控件呈现的开发方式选择依据:由存储过程决定,如果编写的存储过程可以生成需要呈现的表格则直接绑定,否则要动态生成表格
- dotnet OpenXML 读取 PPT 内嵌 ole 格式 Excel 表格的信息
在 Office 中,可以在 PPT 里面插入表格,插入表格有好多不同的方法,对应 OpenXML 文档存储的更多不同的方式.本文来介绍如何读取 PPT 内嵌 ole 格式的 xls+ 表格的方法 在 ...
- compass tables 表格 表格常见样式[Sass和compass学习笔记]
demo 源码 地址 https://github.com/qqqzhch/webfans compass 的表格提供了集中常见样式 表格边框 outer-table-borders($width, ...
- Easyui datagrid 数据表格 表格列头右键菜单选择展示列 JS
Easyui ,数据表格加载出来以后,在表格头右键,会有显示筛选的功能: 如图: 然后可以取消勾选,就变成下面这个样子: 功能的实现是通过重写了easyui 的 $.fn.datagrid.defau ...
- 表格表格中获取不到button选择器
今天做一个表单提交,怎么也拿不到button的选择器,不管用$(“#btn_update”)还会getElementById("btn_update"),浏览器也是谷歌没问题,后来 ...
- 深入浅出ExtJS 第三章 表格控件
3.1 表格的特性简介 >.Ext中的表格功能:包括排序/缓存/拖动/隐藏某一列/自动显示行号/列汇总/单元格编辑等实用功能; >.表格由类Ext.grid.GridPanel定义,继承自 ...
- [HTML/HTML5]8 使用表格
8.1 创建基本的表格结构 8.1.1 表格结构 HTML表格包含4种基本元素: table:在HTML中table元素是一个容器,其中包含用于创建表格的其它的元素: tr:表示表格中的行,开始标 ...
- Jquery.Datatables dom表格定位
Datatables会添加一些控制元素在表格的周围,比如默认状态下改变每页显示条数(l)的空间在左上角,即使搜索框(f)在右上角,表格的信息(i)显示在左下角,分页控件(p)显示在右下角. 这些控件在 ...
- 表格类似Excel
只是很简单的实现表格,使用GridView控件-->可以上下左右滚动,但是不能合并 直接上代码: 1.主要布局 <?xml version="1.0" encoding ...
- easyui源码翻译1.32--datagrid(数据表格)
前言 此前网上有easyui1.25的源码 应该算是比较老的版本 之后又经历了1.26 . 1.3. 1.31. 1.32 .1.33.1.34 1.33开始支持css3 算是又一个转折 但是 ...
随机推荐
- CCD摄像头视场角计算公式
视场角大小和CCD传感器尺寸和镜头焦距有关: 水平视场角 = 2 × arctan(w / 2f); 垂直视场角 = 2 × arctan(h / 2f); 视场角 = 2 × arctan(d / ...
- 轻松掌握stm32直流电机驱动与测速
说实话就现在的市场应用中stm32已经占到了绝对住到的地位,51已经成为过去式,32的功能更加强大,虽然相应的难度有所增加,但是依然阻止不了大家学习32的脚步,不说大话了这些大家都懂要不然也不会学习s ...
- Python ImportError: cannot import name ABC
Python 3.5.2 测试可以运行 import sys from abc import ABC,abstractmethod class MyBase(ABC): @abstractmethod ...
- 第01课 OpenGL窗口(3)
接下来的代码段创建我们的OpenGL窗口.我花了很多时间来做决定是否创建固定的全屏模式这样不需要许多额外的代码,还是创建一个容易定制的友好的窗口但需要更多的代码.当然最后我选择了后者.我经常在EMai ...
- Redis6.2发布 地理位置功能增强了什么?
原文地址:https://developer.aliyun.com/article/780257 Redis社区最近刚刚发布Redis6.2 RC1版本,在本次发布中,阿里云Tair团队(阿里云云内存 ...
- for循环中创建线程执行问题
先执行以一个简单的示例: static void Main(string[] args) { List<int> taskConsumes = new List<int>() ...
- LeetCode刷题 字符串详解
一.字符串常用的操作 1. string类 1.1 string的定义与初始化 1.1.1 string的定义 1.1.2 string的初始化 1.2 string的赋值与swap.大小操作.关系运 ...
- VUE的MVVM框架解析
这篇文章主要介绍了MVVM模式中ViewModel和View.Model有什么区别?本文分别解释了它们的功能和作用,然后总结了它之间的区别,需要的朋友可以参考下 Model:很简单,就是业务逻辑相关的 ...
- Java学习(十一)
今天学习了this和static关键字,这两个都是c++中学过的,但讲师还是讲了2个小时... 学得东西大部分都知道吧. this是当前对象的地址,类中带有static的方法不能使用this. 类中带 ...
- Python 数据类型常用的内置方法(三)
目录 Python 数据类型常用的内置方法(三) 1.列表内置方法 1.sort():升序 2.reverse():颠倒顺序 3.列表比较运算 2.字典内置方法 1.对Key的操作 2.len( )- ...