日期:2014-05-20  浏览次数:21109 次

datagridview的固定列能去掉吗?
如题。也就是想去掉列头。

还有就是行头能设置背景色吗?我觉得行头很难看啊。

------解决方案--------------------
<asp:GridView ID= "GridView1 " runat= "server " BackColor= "White " BorderColor= "#999999 "
BorderStyle= "None " BorderWidth= "1px " CellPadding= "3 " GridLines= "Vertical ">
<FooterStyle BackColor= "#CCCCCC " ForeColor= "Black " />
<RowStyle BackColor= "#EEEEEE " ForeColor= "Black " />
<SelectedRowStyle BackColor= "#008A8C " Font-Bold= "True " ForeColor= "White " />
<PagerStyle BackColor= "#999999 " ForeColor= "Black " HorizontalAlign= "Center " />
<HeaderStyle BackColor= "#000084 " Font-Bold= "True " ForeColor= "White " />
<AlternatingRowStyle BackColor= "#DCDCDC " />
</asp:GridView>


修改 <HeaderStyle节