2

in asp.net, when you have an autogenreated select button on a gridview, is it possible to change the text of it from 'select' to something else of your choosing? If so can anyone point me to an example?

thanks again

2
  • Could you provide the code for your grid? Commented Jul 8, 2011 at 13:19
  • Hi Ive included it in an answer below Commented Jul 8, 2011 at 13:53

2 Answers 2

5

Check this similar question:

Changing text of an autogenerated select column of a gridview in asp.net - How?

Example:

<asp:buttonfield buttontype="Button" 
                 commandname="Select"
                 headertext="Select Customer" 
                 text="SelectText"/>
Sign up to request clarification or add additional context in comments.

Comments

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.