Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GridView Vs. HTML Table (ASP.net 2.0)

For full control of your application, do you prefer a GridView or a HTML table? And why?

For instance, I need to create on-the-fly hyperlinks-per-row in a GridView/HTML table. What object would be more easy to add that feature (or others like this one)?

Note: I'm creating programmatically my datasets

like image 505
RSilva Avatar asked Dec 01 '22 08:12

RSilva


1 Answers

If you don't need the built in support for sorting or paging, and want more control over the rendered output then I would consider using a Repeater control to output a table. If you need the built in sorting/paging then the GridView can be very helpful.

If you want the best of both worlds, upgrade to ASP.net 3.5 and use the ListView.

EDIT: Can you clarify what you mean by 'on-the-fly hyperlinks-per-row'?

like image 117
Abram Simon Avatar answered Dec 04 '22 00:12

Abram Simon