Good style of the GridView | management template of the GridView | style managed by the GridView
<Asp: GridView ID = "gvList" runat = "server" AutoGenerateColumns = "False" BorderColor = "#337FB2"
BorderWidth = "2px" CellPadding = "4" Font-Size = "Small" ForeColor = "#333333" Height = "32%"
OnRowDataBound = "gvList_RowDataBound" Width = "100%">
<Columns>
<Asp: BoundField HeaderText = "no.">
<Itemstyle Width = "5%"/> </asp: BoundField>
<Asp: BoundField DataField = "U_Name" HeaderText = "username">
<Itemstyle Width = "10%"/> </asp: BoundField>
<Asp: BoundField DataField = "U_State" HeaderText = "state">
<Itemstyle Width = "10%"/> </asp: BoundField>
<Asp: BoundField DataField = "U_IP" HeaderText = "IP">
<Itemstyle Width = "25%"/> </asp: BoundField>
<Asp: BoundField DataField = "L_Date" HeaderText = "time">
<Itemstyle Width = "5%"/> </asp: BoundField>
</Columns>
<RowStyle BackColor = "White" Font-Bold = "True" Font-Size = "Small" ForeColor = "#003399"
HorizontalAlign = "Center"/>
<EditRowStyle BackColor = "#999999" type = "regxph" text = "yourobjectname"/>
<SelectedRowStyle BackColor = "#009999" Font-Bold = "True" ForeColor = "# CCFF99"/>
<Pagerstyle BackColor = "#337FB2" ForeColor = "White" HorizontalAlign = "Center" VerticalAlign = "Middle"/>
<Headerstyle BackColor = "#337FB2" CssClass = "BODY" Font-Size = "12px" ForeColor = "White"
HorizontalAlign = "Center" VerticalAlign = "Middle"/>
<AlternatingRowStyle BackColor = "# E8F4FF" Font-Bold = "True" Font-Size = "Small" HorizontalAlign = "Center"/>
<Footerstyle BackColor = "# A6A1E0" Font-Bold = "True" ForeColor = "White"/>
</Asp: GridView>