如何更改GRIDVIEW CSS [英] how to change GRIDVIEW CSS
本文介绍了如何更改GRIDVIEW CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
如何使用CSS更改Grdview颜色.
谢谢
Dear all,
How to change the Grdview color using css.
Thanks
推荐答案
您可以在GridView中使用不同的CSS来更改其不同部分(如行,AlternateRow,页眉,页脚等)的样式
Hi,
You can use different css in a GridView for changing style of its different parts like Rows, AlternateRow, Header, Footer etc
<asp:gridview id="GridView1" xmlns:asp="#unknown">
runat="server"
ShowFooter="true"
AutoGenerateColumns="false"
DataSourceID="SqlDataSource1"
CssClass=""
RowStyle-CssClass=""
AlternatingRowStyle-CssClass=""
HeaderStyle-CssClass=""
FooterStyle-CssClass="">
</asp:gridview>
引用此链接.在这个课程中,您可以使用CSS类.可以帮助您
http://stackoverflow.com/questions/309035/asp- net-gridview-css-issue-when-sorting-on-on [
Refer this link. In this you have css class.May help you
http://stackoverflow.com/questions/309035/asp-net-gridview-css-issue-when-sorting-turned-on[^]
选中此
http://www.jigar.net/howdoi/viewhtmlcontent197.aspx [
Check this
http://www.jigar.net/howdoi/viewhtmlcontent197.aspx[^]
这篇关于如何更改GRIDVIEW CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文