Protected Sub ASPxGridView1_HtmlDataCellPrepared(ByVal sender As Object, ByVal e As DevExpress.Web.ASPxGridView.ASPxGridViewTableDataCellEventArgs) Handles ASPxGridView1.HtmlDataCellPrepared
Try
If e.DataColumn.Caption = "Idle" Then
If e.CellValue.ToString > 0 Then
e.Cell.BackColor = Drawing.Color.Brown
End If
End If
End Try
End Sub
本文介绍如何在ASP.NET GridView中根据特定数据列的值,动态改变数据单元格的背景颜色,实现条件高亮效果。
925

被折叠的 条评论
为什么被折叠?



