R
Roberto Kohler
Hi,
I have a LinkButton in a TemplateField inside my GridView
How do I access this control in the RowDataBound handler?
I've tried this:
Dim LinkEdit As LinkButton
If e.Row.RowType = DataControlRowType.DataRow Then
LinkEdit = e.Row.FindControl("LinkEdit")
LinkEdit.CausesValidation="true"
End If
but it I get the error "Object reference not set to an instance of an
object"
I have a LinkButton in a TemplateField inside my GridView
How do I access this control in the RowDataBound handler?
I've tried this:
Dim LinkEdit As LinkButton
If e.Row.RowType = DataControlRowType.DataRow Then
LinkEdit = e.Row.FindControl("LinkEdit")
LinkEdit.CausesValidation="true"
End If
but it I get the error "Object reference not set to an instance of an
object"