To access the footer row in a gridview in asp.net/vb.net,
write the following in row databound
VB Code
If e.Row.RowType = DataControlRowType.Footer Then
Dim lbl As Label = DirectCast(e.Row.FindControl("lbl"), Label)
lbl.Text = Total
End If
write the following in row databound
VB Code
If e.Row.RowType = DataControlRowType.Footer Then
Dim lbl As Label = DirectCast(e.Row.FindControl("lbl"), Label)
lbl.Text = Total
End If