0
我对gridviews
比较新,我希望能帮助您在RowDataBound
事件触发时如何在gridview
中格式化单行的backcolor
。格式化GridView的BackColor
有没有关于gridviews
的一般格式的好文章?
我对gridviews
比较新,我希望能帮助您在RowDataBound
事件触发时如何在gridview
中格式化单行的backcolor
。格式化GridView的BackColor
有没有关于gridviews
的一般格式的好文章?
事件,你可以做
if (e.Row.RowType == DataControlRowType.DataRow)
{
//DataBinder.Eval(e.Row.DataItem,"Column to check"))
// based on that you can set the value
e.Row.BackColor = Drawing.Color.Yellow
}
你需要那么使用SelectedRowStyle
<selectedrowstyle backcolor="LightCyan" forecolor="DarkBlue" font-bold="true"/>