I am trying to figure out which column (as an integer) I am in as I loop through each cell:
For Each cell As TableCell In e.Row.Cells
If caseType = 0 Then
cell.BackColor = Color.Red
ElseIf caseType = 1 Then
cell.BackColor = Color.Blue
End If
Next
Basically, I want to perform a different operation based on which column I am currently in for a given row...
Edit:
I added a counter for each time through the loop thinking I could use that to figure out which column I'm in:
For Each cell As TableCell In e.Row.Cells
System.Diagnostics.Debug.WriteLine(i)
If caseType = 0 Then
cell.BackColor = Color.Red
ElseIf caseType = 1 Then
cell.BackColor = Color.Blue
End If
i = i + 1
Next
My table ONLY HAS 13 columns, but the Writeline is printing out 0 - 15... any idea where the extra three columns are coming from?