Web/SmartGridViewAlpha.aspx

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="SmartGridViewAlpha.aspx.cs" Inherits="SmartGridViewAlpha" Title="SmartGridViewAlpha测试"
    EnableViewState="true" EnableEventValidation="false" %>

<%@ Register Assembly="YYControls" Namespace="YYControls.SmartGridViewAlpha" TagPrefix="yyca" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="Server">
    <div>
        SmartGridViewAlpha
    </div>
    <div id="divMsg" runat="server" />
    <yyca:SmartGridViewAlpha ID="SmartGridViewAlpha1" runat="server" BackColor="White"
        BorderColor="#999999" BorderStyle="solid" BorderWidth="1px" CellPadding="3" AutoGenerateColumns="False"
        AllowSorting="True" DataSourceID="ObjectDataSource1" Width="1050" CssClassMouseOver="OverRow"
        RowDoubleClickButtonID="btnTestRowDoubleClick" OnRowCommand="SmartGridViewAlpha1_RowCommand"
        AllowPaging="true" PagingStyle="Default" PageSize="20">
        <RowStyle CssClass="Row" />
        <SelectedRowStyle CssClass="SelectedRow" />
        <HeaderStyle CssClass="HeaderRow" />
        <AlternatingRowStyle CssClass="AlternatingRow" />
        <PagerStyle CssClass="PagerRow" />
        <Columns>
            <asp:TemplateField ItemStyle-Width="50px">
                <headertemplate>
                    <asp:Button id="btnExportToExcel" runat="server" Text="Excel" CommandName="ExportToExcel" CommandArgument="ExcelFileName;1,8,9,10,11" />
                </headertemplate>
                <itemtemplate>
                    <%# Container.DataItemIndex + 1 %>
                </itemtemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="100px">
                <headertemplate>
                    <asp:checkbox id="checkall" runat="server" />
                </headertemplate>
                <itemtemplate>
                    <asp:checkbox id="checkitem" runat="server" />
                </itemtemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="id" HeaderText="ID" SortExpression="id" ItemStyle-Width="100px" />
            <asp:BoundField DataField="name" HeaderText="名称" SortExpression="name" ItemStyle-Width="100px" />
            <asp:BoundField DataField="id" HeaderText="ID" SortExpression="id" ItemStyle-Width="100px" />
            <asp:BoundField DataField="name" HeaderText="名称" SortExpression="name" ItemStyle-Width="100px" />
            <asp:BoundField DataField="id" HeaderText="ID" SortExpression="id" ItemStyle-Width="100px" />
            <asp:BoundField DataField="name" HeaderText="名称" SortExpression="name" ItemStyle-Width="100px" />
            <asp:TemplateField ItemStyle-Width="100px">
                <headertemplate>
                    <asp:checkbox id="checkall2" runat="server" />
                </headertemplate>
                <itemtemplate>
                    <asp:checkbox id="checkitem2" runat="server" />
                </itemtemplate>
            </asp:TemplateField>
            <asp:ButtonField CommandName="ConfirmTest" HeaderText="按钮1" Text="<img src='images/button.gif' border='0' width='18' height='18' />"
                ItemStyle-Width="100px" />
            <asp:TemplateField ItemStyle-Width="100px">
                <headertemplate>
                    按钮2
                </headertemplate>
                <itemtemplate>
                    <asp:Button id="btnConfirmTest" runat="server" CommandName="ConfirmTest2" Text="按钮2" CommandArgument='<%# Container.DataItemIndex %>' />
                </itemtemplate>
后面还有 43 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。