I have one grid view in my web application. I use the following code
<asp:GridView ID="dataGrid" runat="server" AllowPaging="True"
AutoGenerateColumns="True" BorderColor="Black" BorderWidth="1px"
CellPadding="4" EnableSortingAndPagingCallbacks="true" Font-Underline="False"
ForeColor="#333333" HorizontalAlign="Left" PageSize="10" RowStyle-Width="20"
Width="421px">
<RowStyle BackColor="#EFF3FB" />
<FooterStyle BackColor="#507CD1" Font-Bold="True" Font-Underline="true"
ForeColor="White" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White"
HorizontalAlign="Left" />
<EditRowStyle BackColor="#2461BF" HorizontalAlign="Left" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
I want when i executing that code which displays the pagenumber should be underlined in grid view. Can anyone able to help for that.
Thanx in advance…
Very simple, use
PagerStyle