I have a database in which there is a column named "codes". When this column of codes is displayed in gridview I would like to modify the contents of the column. For example:
In Database if the codes column contains A,B and C values, then in gridview it should show Abeloth(instead of A), Bollux (instead of B), Chewbacca (instead of C).
Thank you
Update:
I have added the following code, what point am I missing?
Protected Sub GrvPassengerReport_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GrvPassengerReport.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
If e.Row.Cells(8).Text = "C" Then
e.Row.Cells(8).Text = "Chewbacca"
End If
End If
End Sub