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>

  • 相关阅读:
    工资低的.Net程序员,活该你工资低
    React- jsx的使用 使用 camelCase 语法来设置内联样式. React 会在指定元素数字后自动添加 px
    React 使用jsx
    node.js 简介
    转换成数值 parseInt与parseFloat; (toString) 转化为字符串
    函数 封装性划分私有空间
    favicon 不显示的问题总结1
    js进阶 offset
    前端缓存技术
    图片的预加载与懒加载
  • 原文地址:https://www.cnblogs.com/xiayan/p/4089076.html
Copyright © 2011-2022 走看看