Click here to Skip to main content
15,881,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to display only a row on my gridview. How to change, from designer or c#, the number of rows to be shown in a gridview?

What I have tried:

I looked on all settings but I can't figure it out whcih does what I want.
Posted
Updated 12-Mar-20 5:17am

1 solution

A gridview tends to display all the data that you send it. So if you only want a single row displayed, then make sure that your data contains only a single row of items.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900