2011-07-08 69 views
1

在asp.net中,當你在gridview上有一個autogenreated選擇按鈕時,是否可以將它的文本從'select'更改爲你選擇的其他東西?如果有的話,誰能指點我一個例子?在gridview上選擇按鈕 - asp.net

再次感謝

+0

你能爲你的網格的代碼? –

+0

嗨我已經將它包含在下面的答案 – DarkW1nter

回答

-1
<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>