i'm new in vb and can't solve this problem of mine. I have this column from datagridview mark with red box:

And from the above image i want an output like this:
Team Edna - Esca, Adarayan, Dianne, //first shout
Team Edna - Esca, Bacalla, Catherine //2nd shout and so on..
Team Aennah, Aquino, Juan Benigno //3rd shout
Team Aennah, Aguila, Mailebeth //4rth shout and so on..
I already had the code that code detech if the string is starting with "TEAM" it just the discrepancy in the wanted output. Here's my code so far:
For i As Integer = 1 To Me.DataGridView1.Rows.Count
For Each row As DataGridViewRow In DataGridView1.Rows
If Not row.IsNewRow Then
If InStr(row.Cells(0).Value.ToString.ToUpper, UCase(Trim("TEAM"))) <> 0 Then
team = row.Cells(0).Value.ToString.ToUpper
MessageBox.Show(team)
teamMembers = Me.DataGridView1.Rows(i).Cells(0).Value.ToString()
MessageBox.Show(team + ", " + teamMembers)
End If
End If
Next
Next
And the output of this was:
Team Edna - Esca, Adarayan, Dianne
Team Aennah, Adarayan, Dianne
Team Edna, Bacalla, Catherine
Team Aennah, Bacalla, Catherine //so on..
Please help my guys.

