W
wildman
re: Findcontrol on Gridview Boundfield?? Type Label?
In the row command event I've been able to pull the value of a cell as
follows when the cell was produced from from an itemtemplate as
follows:
Dim xxx As String = CType(row.FindControl("pointDate"), Label).Text
However, the above gives me error "Object reference not set to an
instance of an object."
I know I can get the value using
Dim xxx as String = row.Cells(1).Text
But I'd rather not have hard coded positions.
In the row command event I've been able to pull the value of a cell as
follows when the cell was produced from from an itemtemplate as
follows:
Dim xxx As String = CType(row.FindControl("pointDate"), Label).Text
However, the above gives me error "Object reference not set to an
instance of an object."
I know I can get the value using
Dim xxx as String = row.Cells(1).Text
But I'd rather not have hard coded positions.