Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4160
Paging not working properly
posted

Hello

I have a webgrid that uses LoadOnDemand(xml) and Paging (also xml). When a page link is pressed, the "loading" cursor is shown, but after a while the new page is not displayed - I still see page 1. The grid is bound at runtime to a hierarchical dataset (two tables). By the way, loading on demand the second band's rows do work.

What could be wrong?

Private m_objDS As New DS_MyTypedDataSet
Private m_strConnectionString As String

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        m_strConnectionString = "Data Source=MyServer; Initial Catalog=MyDB;User ID=sa; Password=xyz;"      

        UltraWebGrid1.DisplayLayout.Pager.AllowPaging = True
        UltraWebGrid1.DisplayLayout.Pager.PageSize = 20

        LoadDataSet()

        UltraWebGrid1.DataSource = m_objDS
        UltraWebGrid1.DataBind()

    End Sub 

Thanks a lot.