T
Tony WONG
sorry for post too many question
i have a gridview footer to sum up scores.
it works fine
due to the layout and space, then i have to put the GridView inside a
"FormView"
But the event handler fails to call the GridView (Handles
Gridview1.RowDataBound) to sum up the scores.
Grateful for any help. thx.
****** code ****************************
Private Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.GridViewRowEventArgs) Handles
Gridview1.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
MemScore += Convert.ToInt32(DataBinder.Eval(e.Row.DataItem,
"Score"))
ElseIf e.Row.RowType = DataControlRowType.Footer Then
e.Row.Cells(2).Text = MemScore.ToString("0")
End If
End Sub
i have a gridview footer to sum up scores.
it works fine
due to the layout and space, then i have to put the GridView inside a
"FormView"
But the event handler fails to call the GridView (Handles
Gridview1.RowDataBound) to sum up the scores.
Grateful for any help. thx.
****** code ****************************
Private Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.GridViewRowEventArgs) Handles
Gridview1.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
MemScore += Convert.ToInt32(DataBinder.Eval(e.Row.DataItem,
"Score"))
ElseIf e.Row.RowType = DataControlRowType.Footer Then
e.Row.Cells(2).Text = MemScore.ToString("0")
End If
End Sub