我想在 gridview 中找到总行数。这是我的代码,页面大小= 10
Private Sub GridView_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles CustomGridView1.RowDataBound
Dim Count As Integer = CustomGridView1.Rows.Count()
If e.Row.RowType = DataControlRowType.Footer Then
e.Row.Cells(5).Text = Count & " of " & getstudents.Count()
End If
End Sub
页脚在第一页显示为 10 0f 50 但我想显示为 1-10 of 50 。在第二页中它显示相同,但我想显示为 11-20 of 50。谁能告诉我如何显示这样的页脚文本。