SELECT CustomerID, Name,
CASE CountryCode
WHEN 'TH' THEN 'Thailand'
WHEN 'EN' THEN 'English'
WHEN 'US' THEN 'United states'
ELSE 'Unknown'
END AS Country
FROM customer
Dim lblStatus As Label = CType(e.Row.FindControl("lblStatus"),Label)
IF Not IsNothing(lblStatus) Then
IF e.Row.DataItem("Used") = "1" Then
lblUsed.Text = "xxx"
Else
lblUsed.Text = "yyy"
End IF
End IF