3673| 3
|
请问listview怎么根据内容判断来改变行的颜色 |
2学分
最佳答案For J = 2 To iRow
Set itm = goodsList.ListView1.ListItems.Add
itm.Text = SHt.Cells(J, 1).Value
For k = 1 To iCol - 1
itm.SubItems(k) = SHt.Cells(J, k + 1).Value
If SHt.Cells(J, 4) = False Then
itm.ForeColor = RGB(255, 0, 0)
itm.ListSubItems(k).ForeColor = RGB(255, 0, 0)
End If
Next
Nex ...
| ||
发表于 2019-6-15 00:14
|
显示全部楼层
| ||
| ||
发表于 2019-6-15 15:33
|
显示全部楼层
| ||