[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

question about DataGrid's paging

wang yan

10/16/2002 6:18:00 AM

codes as below:

Private Sub Page_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load

DataResult.AllowPaging = True
DataResult.PagerStyle.NextPageText = "up"
DataResult.PagerStyle.PrevPageText = "down"
If Not Page.IsPostBack Then
DataResult.DataBind()
End If
End Sub

Private Sub DataResult_PageIndexChanged(ByVal source As
Object, ByVal e As
System.Web.UI.WebControls.DataGridPageChangedEventArgs)
Handles DataResult.PageIndexChanged

DataResult.CurrentPageIndex = e.NewPageIndex
DataResult.DataBind()

End Sub

but when i click "up",the page reload and then datagrid control can not bee
seen any more.what's wrong?
i compile step by step,and the DataResult_PageIndexChanged sub has been
implement. i can not solve the question.Please help me,thank you!!