| |

VerySource

 Forgot password?
 Register
Search
View: 749|Reply: 5

How to implement the automatic paging function if the GridView does not use the SqlDataSource control?

[Copy link]

7

Threads

16

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-1-3 10:50:01
| Show all posts |Read mode
GridView's data source writes its own code to bind. In this case, how to implement automatic paging? Thank you!
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 United States

Post time: 2020-1-3 11:24:01
| Show all posts
Just let him support pagination.
Has nothing to do with the data source
Reply

Use magic Report

7

Threads

16

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

 Author| Post time: 2020-1-3 11:48:02
| Show all posts
I have tried, once the GridView's AllowPaging is set to true, an error is reported when binding the data: 'The data source does not support server-side data paging'.
Reply

Use magic Report

0

Threads

4

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-3 17:57:01
| Show all posts
Implement the GetView method of IDataSource. The CanPage property of the returned DataSourceView must be set to true.
Reply

Use magic Report

2

Threads

9

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-1-19 01:00:02
| Show all posts
protected void gvshow_PageIndexChanging (object sender, GridViewPageEventArgs e)
    {
        this.gvshow.PageIndex = e.NewPageIndex;
        this.BindData ();
    }
Reply

Use magic Report

0

Threads

3

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-14 22:45:01
| Show all posts
Seeing here might help you
http://community.csdn.net/Expert/topic/5273/5273005.xml?temp=.3571741
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list