Protected Sub gb_gamers1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gb_gamers1.RowDataBound
Dim row As GridViewRow = e.Row
Dim img As Image = TryCast(e.Row.FindControl("imgpais"), Image)
If row.RowIndex > -1 Then
If row.Cells(3).Text = "[AR]" Then
img.ImageUrl = "~/pages/images/[AR].png"
ElseIf row.Cells(3).Text = "[BO]" Then
img.ImageUrl = "~/pages/images/[BO].png"
ElseIf row.Cells(3).Text = "[BR]" Then
img.ImageUrl = "~/pages/images/[BR].png"
ElseIf row.Cells(3).Text = "[CL]" Then
img.ImageUrl = "~/pages/images/[CL].png"
ElseIf row.Cells(3).Text = "[CO]" Then
img.ImageUrl = "~/pages/images/[CO].png"
ElseIf row.Cells(3).Text = "[CR]" Then
img.ImageUrl = "~/pages/images/[CR].png"
ElseIf row.Cells(3).Text = "[DK]" Then
img.ImageUrl = "~/pages/images/[DK].png"
ElseIf row.Cells(3).Text = "[EC]" Then
img.ImageUrl = "~/pages/images/[EC].png"
ElseIf row.Cells(3).Text = "[ESV]" Then
img.ImageUrl = "~/pages/images/[ESV].png"
ElseIf row.Cells(3).Text = "[ES]" Then
img.ImageUrl = "~/pages/images/[ES].png"
ElseIf row.Cells(3).Text = "[EUA]" Then
img.ImageUrl = "~/pages/images/[EUA].png"
ElseIf row.Cells(3).Text = "[GU]" Then
img.ImageUrl = "~/pages/images/[GU].png"
ElseIf row.Cells(3).Text = "[HN]" Then
img.ImageUrl = "~/pages/images/[HN].png"
ElseIf row.Cells(3).Text = "[HU]" Then
img.ImageUrl = "~/pages/images/[HU].png"
ElseIf row.Cells(3).Text = "[MLS]" Then
img.ImageUrl = "~/pages/images/[MLS].png"
ElseIf row.Cells(3).Text = "[MX]" Then
img.ImageUrl = "~/pages/images/[MX].png"
ElseIf row.Cells(3).Text = "[PA]" Then
img.ImageUrl = "~/pages/images/[PA].png"
ElseIf row.Cells(3).Text = "[PE]" Then
img.ImageUrl = "~/pages/images/[PE].png"
ElseIf row.Cells(3).Text = "[PR]" Then
img.ImageUrl = "~/pages/images/[PR].png"
ElseIf row.Cells(3).Text = "[RD]" Then
img.ImageUrl = "~/pages/images/[RD].png"
ElseIf row.Cells(3).Text = "[VE]" Then
img.ImageUrl = "~/pages/images/[VE].png"
End If
End If
End Sub