albert_leung Posted October 19, 2006 Share Posted October 19, 2006 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 More sharing options...
aspnetguy Posted October 19, 2006 Share Posted October 19, 2006 I don't know what you are asking. Show it to the next page? What do you mean? Link to comment Share on other sites More sharing options...
pulpfiction Posted October 19, 2006 Share Posted October 19, 2006 Are you asking about displaying datagrid in multiple pages? then the event is "DataGridPageChangedEventArgs" and you need to set "PageSize" of the datagrid.... Link to comment Share on other sites More sharing options...
albert_leung Posted October 20, 2006 Author Share Posted October 20, 2006 Hi All. Let say I have two different web form, web form A and web form B. my datagrid and all the related coding is on the web form A, but now, I want to show my datagrid on web form B instead shows it on the web form A. Thanks.Albert Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now