I am trying to add an extra parameter to the DataNavigateUrlFormatString of a grid view. The value is held in a code behind variable, qID
I have tried a databound event, but it doesn't seem to be firing. Can someone tell me what I am doing wrong?
Protected Sub GridView1_RowDataBound(sender As Object, e As GridViewRowEventArgs)
If e.Row.RowType = DataControlRowType.DataRow Then
Dim h As HyperLinkField = DirectCast(GridView1.Columns(5), HyperLinkField)
h.DataNavigateUrlFormatString += "&pid=" + qID
If e.Row.RowType = DataControlRowType.Footer Then