我想在GridView中显示1000行和80行。我有点担心应用程序的性能。如果你知道如何让它获得更好的性能,请告诉hw以详细的方式做到这一点。
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
Me.FillGrid()
End If
End Sub
'填充网格
Private Sub FillGrid()
Try
Dim MyCompany As New Company
Dim mydsCompanyDSource As DataSet
mydsCompanyDSource = MyCompany.DisplayData()
gvCompany.DataSource = mydsCompanyDSource
gvCompany.DataBind()
Catch ex As Exception
CreatelogFile(ex)
End Try
End Sub
对gridview进行分页是正确的。如果会有大量数据出现,会出现任何性能问题吗?