In a WebListBox, I would like show different row colors dynamically. Below is my sample coding and it works as expected…
// show different background color
If ListBox1.Cell(ListBox1.LastIndex, 5) = "Male" Then
For i As Integer = 0 to ListBox1.ColumnCount - 1
ListBox1.CellStyle(ListBox1.LastIndex, i) = StyleBackgroundRed
Next
End
My issue is, when the background color changed row is highlighted, it does not display the default selected ‘blue’ color row anymore. The default highlighted blue row only works on the “Female” row but not the “Male” row. Is there any ways which I could fix it?
Thank you.