gridview 边框 颜色设置
如何设置gridview边框颜色,包括内外边框,bordercolor只能设置外边框颜色
------解决方案--------------------你要的是
ItemStyle-BorderColor 吗?
------解决方案--------------------
this.GridView1.Attributes.Add("bordercolor", "red");
------解决方案--------------------
------解决方案-------------------- <asp:GridView runat="server" AutoGenerateColumns="False" CellPadding="4" Width="100%" ForeColor="#333333" GridLines="None" BorderWidth="0" EmptyDataText="没有可显示的数据记录。">
<FooterStyle BackColor="#000FFF" ForeColor="Black" Font-Bold="True" />
<SelectedRowStyle BackColor="#F6F6F6" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Center" />
<HeaderStyle CssClass="headerTitle"/>
<EmptyDataRowStyle BackColor="#FFFFCC" ForeColor="Black" BorderColor="Black" BorderStyle="Solid" BorderWidth="3px" Font-Bold="True" Font-Size="18px" Height="60px" HorizontalAlign="Center" Width="100%" />
<RowStyle BackColor="#F7F6F3" ForeColor="Desktop" />
<EditRowStyle BackColor="#999999" />
<AlternatingRowStyle BackColor="White" ForeColor="Desktop" />
</asp:GridView>
试试这个