Jump to content

Display DataGrid result on the new page


albert_leung

Recommended Posts

Hi All. I am using VB.Net to work on my project. Is any one can teach me how can I show the Datagird to the new page either in VB.Net or ASP coding please? Thank you very much.AlbertHere is my code:

 Sub ShowPage()		' Populate the DataGrid		SearchResultsGrid.DataSource = ResultsToDataSet(whichResultsPage)		SearchResultsGrid.PageSize = itemsPerPage		SearchResultsGrid.CurrentPageIndex = whichResultsPage		If (bKeepResultsInSession) Then			SearchResultsGrid.VirtualItemCount = Results.Count		Else			SearchResultsGrid.VirtualItemCount = totalDocCount		End If		SearchResultsGrid.DataBind()		If (Not bKeepResultsInSession) Then			Results.Dispose()			Results = Nothing		End If	End Sub

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...