| |

VerySource

 Forgot password?
 Register
Search
View: 648|Reply: 1

Advice: DetailsView data display problems

[Copy link]

3

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-3-7 12:30:02
| Show all posts |Read mode
How is the DetailsView so different from the previous DataList

such as:
        <asp: DetailsView ID = "DetailsView1" runat = "server" Height = "50px" Width = "159px" EnableTheming = "True" AutoGenerateRows = "False" AllowPaging = "True" OnPageIndexChanging = "DetailsView1_PageIndexChanging">
            <Fields>
                <asp: BoundField HeaderText = "Merchant ID:" DataField = "Merchant ID" />
                <asp: BoundField HeaderText = "Business name:" DataField = "Business name" />
                <asp: BoundField HeaderText = "Business Address:" DataField = "Business Address" />

            </ Fields>
        </ asp: DetailsView>



Why only the first record is displayed? It seems there is no PageSize property
For example, one page asks him to display 20 records. What should I do? Thank you
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-13 20:15:01
| Show all posts
DetailsView and DataList are two completely different types of controls


DetailsView is displayed as a single record
DataList is a display of multiple records


To display 20 records on 1 page, use gridview
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