Thursday, October 3, 2013

how to access footer row in databound of a gridview

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

No comments:

Post a Comment