"vb.net"
Private iTotal As Integer = 0
Protected Sub GridView_RowDataBound(sender As Object, e As GridViewRowEventArgs)
Try
' chek grid view rowtype is datarow
If e.Row.RowType = DataControlRowType.DataRow Then
iTotal += Convert.ToInt32(DataBinder.Eva l(e.Row.DataItem, "Your Col Name"))
End If
Private iTotal As Integer = 0
Protected Sub GridView_RowDataBound(sender As Object, e As GridViewRowEventArgs)
Try
' chek grid view rowtype is datarow
If e.Row.RowType = DataControlRowType.DataRow Then
iTotal += Convert.ToInt32(DataBinder.Eva
End If