user366312
user366312

Reputation: 16918

asp.net DetailsView programmatic data access

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.

Upvotes: 0

Views: 541

Answers (1)

epitka
epitka

Reputation: 17637

You have to re-bind your details view.

Upvotes: 1

Related Questions