I have a gridview control. This has several columns and multiple rows.
I’d like to accomplish the following. Take the value of column 4 and pass it into a function which returns a value and then displays that in the original cell.
This is to be done for each row.
I thought I could do this like this but this gives an Object reference not set to an instance of an object error:
Protected Sub GV_All_Actions_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GV_All_Actions.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
Dim lblActioner As Label = DirectCast(GV_All_Actions.FindControl("lbl_actioner"), Label)
lblActioner.Text = callFunction(lblActioner.Text.ToString())