title: How to change cell value binded in gridview based on condition using asp vb.net?
body: <p>I have problem on changing cell value binded in gridview based on condition. The data was binded first to gridview from a csv file. What I want to do is whenever a specific cell on a specific column meets the condition I put, it will change the value of that specific cell.</p>
  
  <p>For example, if cell value is equal to "PHP" then it will changed into "Philippines".
  I tried below codes on Gridview RowDataBound event but nothing happens:</p>
  
  <pre><code> Private Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
      For i As Integer = 0 To GridView1.Rows.Count - 1
          Dim myVal As String = GridView1.Rows(i).Cells(0).Text
          If myVal = "PHP" Then
              GridView1.Rows(i).Cells(0).Text = "Philippines"
          End If
      Next
  End Sub
  </code></pre>
  
  <p>Please help me.</p>
  
  <p>Thanks in advance.</p>