Hi Guys,
I have some code:
I want to loop over each cell in column 0 and get the substring of it; then assign to to string variable "s1", only I can't figure out how to target column 0. I know it's probably really simple, but I can't see it at the minute.
Any help would be greatly received.
Thanks
I have some code:
VB.NET:
Dim s1 As String
For Each row As DataGridViewRow In DataGridView1.Rows
For i As Integer = 0 To row.Cells.Count - 1
s1 = row.Cells(i).Value.substring(9, 10)
//do something with s1
s1 = Nothing
Next i
Next row
I want to loop over each cell in column 0 and get the substring of it; then assign to to string variable "s1", only I can't figure out how to target column 0. I know it's probably really simple, but I can't see it at the minute.
Any help would be greatly received.
Thanks