<asp:GridView ID="GV" CssClass="GridViewTable" runat="server" BorderStyle="Solid"
        AutoGenerateColumns="False" DataKeyNames="ShopSysID" OnRowDataBound="GV_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderStyle-Width="28px" ItemStyle-HorizontalAlign="Center">
                <HeaderTemplate>
                    <asp:CheckBox ID="chkSelectAll" runat="server" ToolTip="字段名" onclick="Javascript:SelectAll(this);" />
                </HeaderTemplate>
                <ItemTemplate>
                </ItemTemplate>
                <HeaderStyle Width="28px" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="字段名" HeaderStyle-Width="50px" ItemStyle-HorizontalAlign="Center">
                <HeaderStyle Width="50px" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="ShopSysName" HeaderText="字段名" ItemStyle-Width="100px"
                ItemStyle-HorizontalAlign="Left">
                <ItemStyle HorizontalAlign="Left" Width="100px" />
            </asp:BoundField>
            <asp:BoundField DataField="ShopSysPrice" HeaderText="字段名" ItemStyle-HorizontalAlign="Left">
                <ItemStyle HorizontalAlign="Left" Width="100px" />
            </asp:BoundField>
            <asp:BoundField DataField="ShopSysAddress" HeaderText="字段名" ItemStyle-HorizontalAlign="Left">
                <ItemStyle HorizontalAlign="Left" Width="100px" />
            </asp:BoundField>
        </Columns>
    </asp:GridView>

posted on 2012-05-17 11:49  王嘉斯  阅读(237)  评论(1编辑  收藏  举报