<asp:GridView ID="GridView1"
                runat="server" AllowPaging="True" AutoGenerateColumns="False"
                BackColor="#78C7EB" BorderColor="#78C7EB" BorderWidth="1px"
                CellPadding="3" CellSpacing="2" DataKeyNames="ID"
                Height="50px" Width="810px" style="left: 3px; top: 3px"
                OnPageIndexChanging="GridView1_PageIndexChanging"
                OnRowDataBound="GridView1_RowDataBound"
                Font-Size="Large">
                <FooterStyle BackColor="#F7DFB5" ForeColor="#46434F" Font-Bold="False" />
                <RowStyle BackColor="#EDF6FA" ForeColor="#46434F" />
                <Columns>
               
                    <asp:BoundField DataField="ID" HeaderText="编号" ReadOnly="True"
                        SortExpression="ID" >
                        <HeaderStyle BackColor="#34A7DC" BorderColor="#336699" BorderStyle="Double"
                            BorderWidth="1px" Font-Size="Medium" />
                        <ItemStyle HorizontalAlign="Center" BorderWidth="1px"
                            Font-Size="Small" BorderColor="#34A7DC" Width="28px" />
                    </asp:BoundField>

<asp:BoundField DataField="M_Title" HeaderText="会议主题" SortExpression="M_Title" >
                        <HeaderStyle BackColor="#34A7DC" BorderColor="#336699" BorderStyle="Double"
                            BorderWidth="1px" Font-Size="Medium" />
                        <ItemStyle HorizontalAlign="Center" BorderWidth="1px"
                            Font-Size="Small" BorderColor="#34A7DC" Width="160px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="M_Room" HeaderText="会议室" SortExpression="M_Room" >
                        <HeaderStyle BackColor="#34A7DC" BorderColor="#336699" BorderStyle="Double"
                            BorderWidth="1px" Font-Size="Medium" />
                        <ItemStyle HorizontalAlign="Center" BorderWidth="1px"
                            Font-Size="Small" BorderColor="#34A7DC" Width="60px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="M_Chairman" HeaderText="主持人"
                        SortExpression="M_Chairman" >
                        <HeaderStyle BackColor="#34A7DC" BorderColor="#336699" BorderStyle="Double"
                            BorderWidth="1px" Font-Size="Medium" />
                        <ItemStyle HorizontalAlign="Center" BorderWidth="1px"
                            Font-Size="Small" BorderColor="#34A7DC" Width="60px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="M_S_Time" HeaderText="开始时间"
                        SortExpression="M_S_Time" >
                        <HeaderStyle BackColor="#34A7DC" BorderColor="#336699" BorderStyle="Double"
                            BorderWidth="1px" Font-Size="Medium" />
                        <ItemStyle HorizontalAlign="Center" BorderWidth="1px"
                            Font-Size="Small" BorderColor="#34A7DC" Width="80px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="M_E_Time" HeaderText="结束时间"
                        SortExpression="M_E_Time" >
                        <HeaderStyle BackColor="#34A7DC" BorderColor="#336699" BorderStyle="Double"
                            BorderWidth="1px" Font-Size="Medium" />
                        <ItemStyle HorizontalAlign="Center" BorderWidth="1px"
                            Font-Size="Small" BorderColor="#34A7DC" Width="80px" />
                    </asp:BoundField>
                     <asp:BoundField DataField="M_Person" HeaderText="与会人"
                        SortExpression="M_Person" >
                        <HeaderStyle BackColor="#34A7DC" BorderColor="#336699" BorderStyle="Double"
                            BorderWidth="1px" Font-Size="Medium" />
                        <ItemStyle HorizontalAlign="Center" BorderWidth="1px"
                            Font-Size="Small" BorderColor="#34A7DC" Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="M_Operator" HeaderText="预约人"
                        SortExpression="M_Operator" >
                        <HeaderStyle BackColor="#34A7DC" BorderColor="#336699" BorderStyle="Double"
                            BorderWidth="1px" Font-Size="Medium" />
                        <ItemStyle HorizontalAlign="Center" BorderWidth="1px"
                            Font-Size="Small" BorderColor="#34A7DC" Width="60px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="M_Operator_Date" HeaderText="预约时间"
                        SortExpression="M_Operator_Date" >
                        <HeaderStyle BackColor="#34A7DC" BorderColor="#336699" BorderStyle="Double"
                            BorderWidth="1px" Font-Size="Medium" />
                        <ItemStyle HorizontalAlign="Center" BorderWidth="1px"
                            Font-Size="Small" BorderColor="#34A7DC" Width="80px" />
                    </asp:BoundField>
                   
                </Columns>
                <PagerStyle ForeColor="#EDF6FA" HorizontalAlign="Center" Font-Bold="True"
                      Font-Italic="False" Font-Names="Arial Black" Font-Overline="False"
                      Font-Size="Medium" Font-Underline="False" Height="28px" />
                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#EDF6FA" Font-Bold="True" ForeColor="White"
                      Font-Size="Small" Height="38px" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>

20151221001 GridView 模板的更多相关文章

  1. 根据GridView模板里的列名获取列索引

    以前Insus.NET在写过一篇<在Gridview控件中根据Field Name来取得对应列索引> http://www.cnblogs.com/insus/archive/2010/0 ...

  2. WPF将数据库和GridView绑定并更改GridView模板

    首先来看一下如何使用GridView,在前台的话代码如下:这里仅仅举出一个例子,GridView是作为子项嵌套在ListView中的,这里的数据源是通过绑定的方式来绑定到GridView中的. < ...

  3. js获取gridview模板列中textbox行列的值

    下面一个例子:在gridview中第一列输入数值,第二列输入数值,点击第三列的时候进行计算 求和,如果不符合标记为红色字体. 如图: 代码 : <html xmlns="http:// ...

  4. GridView,Repeater增加自动序号列

    有三种实现的方式, 第一种方式,直接在Aspx页面GridView模板列中.这种的缺点是到第二页分页时又重新开始了. <Columns> <asp:TemplateField Hea ...

  5. asp.net 中给gridview添加自动序号

    第一种方式,直接在Aspx页面GridView模板列中.这种的缺点是到第二页分页时又重新开始了. 代码如下: <asp:TemplateField HeaderText="序号&quo ...

  6. asp.net学习之GridView事件、GridViewRow对象

    原文:asp.net学习之GridView事件.GridViewRow对象 1. GridView控件的事件 GridView有很多事件,事件可以定制控件的外观或者行为.事件分为三类     1.1 ...

  7. gridview 自动序号 合计

    第一种方式,直接在Aspx页面GridView模板列中.这种的缺点是到第二页分页时又重新开始了. <asp:TemplateField HeaderText="序号" Ins ...

  8. GridView内容详解(转载)

    GridView内容详解(转载) GridView是ASP.NET界面开发中的一个重要的控件,对GridView使用的熟练程度直接影响软件开发的进度及功能的实现.(车延禄)GridView的主要新特性 ...

  9. GridView中数据行的操作

    一个是直接动态绑定gridview 用3楼的办法就可以了 int j=1;//j的数值表示你要取的那一列的索引,要取第二列,j就设为1for (int i = 0; i < this.GridV ...

随机推荐

  1. 异常积累:org.hibernate.StaleStateException

    ERROR - Exception executing batch:  org.hibernate.StaleStateException: Batch update returned unexpec ...

  2. Spring 依赖注入,在Main方法中取得Spring控制的实例

    Spring依赖注入机制,在Main方法中通过读取配置文件,获取Spring注入的bean实例.这种应用在实训的时候,老师曾经说过这种方法,而且学Spring入门的时候都会先学会使用如何在普通的jav ...

  3. Leetcode: Convert a Number to Hexadecimal

    Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two's compl ...

  4. G面经prepare: Straight Partition of A Deck of Cards

    Define “Straight” as 5 cards with consecutive numbers. Determine if the deck can be fully divided in ...

  5. Lintcode: Minimum Subarray

    Given an array of integers, find the subarray with smallest sum. Return the sum of the subarray. Hav ...

  6. 源码安装nginx以及平滑升级

                                                           源码安装nginx以及平滑升级                               ...

  7. poj 1731 Orders

    http://poj.org/problem?id=1731 Orders Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 9 ...

  8. [转]StuQ 技能图谱(全套13张)

    程序开发语言综述.jpg 前端工程师必备技能.jpg 大数据工程师必备技能.jpg   安全工程师必备技能.jpg 嵌入式开发必备技能.jpg iOS开发工程师必备技能.jpg   移动无线测试工程师 ...

  9. java一般要点

    1.String是引用类型. 2.char, short, byte在进行运算的时候会自动转换成int类型数据., 3.数据A 异或同一个数两次,得到的还是A 4.java的for循环,可以在前面加一 ...

  10. -XX:+PrintGCDetails 打印GC详细信息

    -XX:+PrintGCDetails –打印GC详细信息     n-XX:+PrintGCDetails的输出 –Heap – def new generation   total 13824K, ...