G
Guest
Dear all,
What is the way to check the value of a particular item in a particular cell
and then set its forground property in red in case of a certain value ??
I have done the following but do dot work :
============================
Select Case e.Item.ItemType
Case ListItemType.Item
If IsNumeric(e.Item.Cells(e.Item.ItemIndex).Text) Then
If CInt(e.Item.Cells(e.Item.ItemIndex).Text) = 945370550
Then
e.Item.BackColor = Color.Red
e.Item.ForeColor = Color.White
End If
End If
End Select
what dis I miss ?
thnaks for your help
regards
serge
What is the way to check the value of a particular item in a particular cell
and then set its forground property in red in case of a certain value ??
I have done the following but do dot work :
============================
Select Case e.Item.ItemType
Case ListItemType.Item
If IsNumeric(e.Item.Cells(e.Item.ItemIndex).Text) Then
If CInt(e.Item.Cells(e.Item.ItemIndex).Text) = 945370550
Then
e.Item.BackColor = Color.Red
e.Item.ForeColor = Color.White
End If
End If
End Select
what dis I miss ?
thnaks for your help
regards
serge