I would like my grid view to display only 3 rows any ideas on how I can achieve this?
Thanks
Enable Paging and set the GridView's PageSize
to 3.
How to: Enable Default Paging in the GridView Web Server Control
If you want to restrict your GridView to show only 3 rows without paging, you need to use a DataSource
with only 3 records (f.e. via SQL-TOP
-Clause or Limit
in MySQL or LINQ's Take(3)
).