Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NET
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 21-Dec-12 2:08am


2 solutions

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

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Prasad_Kulkarni 407
1 Christian Graus 363
2 Sergey Alexandrovich Kryukov 325
3 _Amy 288
4 OriginalGriff 285
0 Sergey Alexandrovich Kryukov 6,649
1 Prasad_Kulkarni 3,281
2 _Amy 3,065
3 OriginalGriff 2,989
4 CPallini 2,696


Advertise | Privacy | Mobile
Web01 | 2.6.130617.1 | Last Updated 21 Dec 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid