Question

How to programmatically browse through the pages of a data-bound DetailsView?

I am using this code:

protected void DetailsView1_PageIndexChanging(object sender, DetailsViewPageEventArgs e)
        {
            DetailsView1.PageIndex = e.NewPageIndex;
        }

The page is changing. But the problem is, the next record item is not showing up. The old item is still visible on the new page.

Was it helpful?

Solution

You have to re-bind your details view.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top