Winform界面开发技巧分享:如何突出显示WinForms网格控件行
下载DevExpress v20.1完整版 DevExpress Winforms Controls 内置140多个UI控件和库,完美构建流畅、美观且易于使用的应用程序。想要体验? 点击下载>> 遇到的问题 在VB Windows Form上工作,有一下VB代码,该代码应该为带有NextCalibrationDate <= to today's date的行提供红色背景(在此情况下只有两行),但是没有实现。当调试应用程序时,似乎代码正在运行,但两行的颜色未更改为红色。目前想知道是否是因为在这些单元格中设置了日期的方式。 Private Sub GridView1_RowStyle(ByVal sender As Object, ByVal e As DevExpress.XtraGrid.Views.Grid.RowStyleEventArgs) Handles GridView1.RowStyle Dim nextCalibDate As Date Dim I As Integer Dim DataRowCount As Integer = GridView1.DataRowCount Dim View As GridView = sender For I = 0 To DataRowCount - 1 If IsDBNull(GridView1.GetRowCellValue