Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i want to highlight the row in gridview,when user select any row on gridview i need 2 hightlight that row.please any one tell me
Posted

XML
<asp:GridView ID="GridView1" runat="server" Width="315px"
            onrowcancelingedit="GridView1_RowCancelingEdit"
            onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing"
            onrowupdating="GridView1_RowUpdating">
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True"
                    ShowSelectButton="True" />
                <asp:ButtonField ButtonType="Button" HeaderText="aa" Text="Button" />
            </Columns>

            <SelectedRowStyle BackColor="LightBlue" /> 

        </asp:GridView>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900