簡體   English   中英

select 按鈕在 gridview - asp.net

[英]select button on gridview - asp.net

在 asp.net 中,當您在 gridview 上有一個自動生成的 select 按鈕時,是否可以將其文本從“選擇”更改為您選擇的其他內容? 如果是這樣,誰能給我舉個例子?

再次感謝

檢查這個類似的問題:

更改 asp.net 中 gridview 的自動生成的 select 列的文本 - 如何?

例子:

<asp:buttonfield buttontype="Button" 
                 commandname="Select"
                 headertext="Select Customer" 
                 text="SelectText"/>
<asp:GridView ID="gvSearch" runat="server" Visible="False" 
                OnPageIndexChanging="Grid_Changing" AllowPaging="True" AllowSorting="True" 
                AutoGenerateSelectButton="True" CellPadding="4" Font-Names="Arial" 
                Font-Size="XX-Small" ForeColor="#333333" GridLines="None" 
                onselectedindexchanged="gvSearch_SelectedIndexChanged" PageSize="100">
                <AlternatingRowStyle BackColor="White" />
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM