Private Sub DataGridView1_CellFormatting(ByVal sender As Object, ByVal e As DataGridViewCellFormattingEventArgs) Handles DataGridView1.CellFormatting If e.Value.ToString = "未处理" Then e.CellStyle.ForeColor = Color.Red End If If e.Value.ToString = "已处理" Then e.CellStyle.ForeColor = Color.LimeGreen End If If e.Value.ToString = "处理中" Then e.CellStyle.ForeColor = Color.OrangeRed End If End Sub
vb.net DataGridView 改变某个单元格字体的颜色
最新推荐文章于 2023-11-13 16:05:01 发布