zoukankan      html  css  js  c++  java
  • webdatagrid 列样式

    <style type="text/css">

            .HeaderCaptionClass

            {

                text-align: center;

            }

            tbody.NewItemClass > tr > td

            {

                color: blue;

                text-align: center;

            }

            tbody > tr.ActiveRowClass > td

            {

                background-color: Red;

            }

            tbody > tr > td.ColumnLevelCssClass

            {

                text-decoration: underline;

            }

            tbody > tr > td.SelectedCellClass

            {

                font-weight: bold;

            }

            tbody > tr > td.ActiveCellClass

            {

                background-color: Yellow;

            }

    </style>


    <ig:WebDataGrid runat="server" ID="wdgCustomers" DataSourceID="AccessDsCustomers"

            HeaderCaptionCssClass="HeaderCaptionClass" DataKeyFields="CustomerID" AutoGenerateColumns="false"

            Width="88%" ItemCssClass="NewItemClass" Height="400">

            <Columns>

                <ig:BoundDataField CssClass="ColumnLevelCssClass" Key="Country" DataFieldName="Country"

                    Header-Text="Country" />

                <ig:BoundDataField Key="City" DataFieldName="City" Header-Text="City" />

                <ig:BoundDataField Key="CompanyName" DataFieldName="CompanyName" Header-Text="Company" />

                <ig:BoundDataField Key="ContactName" DataFieldName="ContactName" Header-Text="Contact" />

                <ig:BoundDataField Key="Phone" DataFieldName="Phone" Header-Text="Phone"/>

            </Columns>

            <Behaviors>

                <ig:Activation ActiveCellCssClass="ActiveCellClass" ActiveRowCssClass="ActiveRowClass">

                </ig:Activation>

                <ig:Selection SelectedCellCssClass="SelectedCellClass">

                </ig:Selection>

            </Behaviors>

        </ig:WebDataGrid>

        <asp:AccessDataSource ID="AccessDsCustomers" runat="server" DataFile="~/App_Data/Nwind.mdb"

            SelectCommand="SELECT [CustomerID], [CompanyName], [ContactName], [Address], [City], [Phone], [Country] FROM [Customers] ORDER BY [Country]">

        </asp:AccessDataSource>

  • 相关阅读:
    2013第五周上机任务【项目1 三角形类(构造函数)】
    Google搜索小技巧
    项目总结:文件上传(MVC uploadify)
    Oracle 触发器 Update 不能操作本表的疑问
    【笔试题STL】求两个vector的交集
    Zookeeper(六)数据模型
    是的,我们真的在遭遇有史以来最大的DDoS攻击,并且还在加剧
    在MFC框架下使用osg报内存泄露的解决办法
    NetBeans 时事通讯(刊号 # 107 Jun 25, 2010)
    VS 2008中的C/C++静态代码分析工具Prefast
  • 原文地址:https://www.cnblogs.com/xiayan/p/4089076.html
Copyright © 2011-2022 走看看