以下是引用大红袍在2015/8/25 16:01:00的发言:
不行。
去datacolchanged事件根据逻辑写代码。然后重置列计算。
如何重置列计算呢,我的表drawcell代码这样设置颜色的
If e.Row.IsNull("列1") = False AndAlso e.Row.IsNull("列2") AndAlso e.Row.IsNull("列3") Then
e.Style = "绿色"
End If
If e.Row.IsNull("列1") = False AndAlso e.Row.IsNull("列3") = False AndAlso e.Row.IsNull("列2") Then
e.Style = "橙色"
End If
If e.Row.IsNull("列2") = False AndAlso e.Row.IsNull("列3") = False AndAlso e.Row.IsNull("ATA")= False Then
e.Style = "灰色"
End If
If e.Row.IsNull("列1") AndAlso e.Row.IsNull("列2") AndAlso e.Row.IsNull("列3") Then
e.Style = "白色"
End If
想根据这些样式颜色给列4赋值1,2,3,4然后好将相同颜色排序
[此贴子已经被作者于2015/8/25 16:21:58编辑过]