Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is how i done in my project</p> <p><strong>CSS:</strong></p> <p><code>.tdonhover { background-color:#d9d9d9 !important; }</code></p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function () { $('td').hover(function () { $('tr').each(function () { $(this).removeClass('tdonhover'); }); $(this).parent().addClass('tdonhover'); }); }); &lt;/script&gt; </code></pre> <p><strong>Default.aspx page :</strong> This page contains gridview control.</p> <pre><code> ` &lt;asp:GridView ID="GridView1" runat="server" CellPadding="4" Width="940px" CssClass="gvClass gvalign" BorderColor="#E0DCD0" BorderStyle="Solid" BorderWidth="1px" ForeColor="#333333" GridLines="None" &gt; &lt;Columns&gt; &lt;asp:TemplateField HeaderText="Srno" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="40"&gt; &lt;ItemTemplate&gt; &lt;%# Container.DataItemIndex+1 %&gt; &lt;/ItemTemplate&gt; &lt;/asp:TemplateField&gt; &lt;/Columns&gt; &lt;FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" /&gt; &lt;RowStyle ForeColor="#603813" BackColor="#F7F6F3" /&gt; &lt;PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /&gt; &lt;SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /&gt; &lt;HeaderStyle BackColor="#A86E07" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" /&gt; &lt;EditRowStyle BackColor="#999999" /&gt; &lt;AlternatingRowStyle BackColor="White" ForeColor="#A86E07" /&gt; &lt;/asp:GridView&gt;` </code></pre> <p>Using </p> <pre><code>&lt;RowStyle ForeColor="#603813" BackColor="#F7F6F3" /&gt; &lt;AlternatingRowStyle BackColor="White" ForeColor="#A86E07" /&gt; </code></pre> <p>you can set Alternate row Background color and fontcolor</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload