Gridview vs. HTML table (ASP.net 2.0)

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

For example, I need to create on-the-fly hyperlinks for each row in a GridView / HTML table. Which object will be easier to add this function (or others like this one)?

Note. I create my data sets programmatically

+3
source share
5 answers

If you don’t need the built-in sorting or swap support and want more control over the processed output, I would consider using the Repeater control to display the table. If you need built-in sorting / swapping, then GridView can be very useful.

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

EDIT: can you clarify what you mean by “on-the-fly hyperlinks for each row”?

+8
source

Gridview. . , (, 30-40 6,0000) . , HTML/CSS, , .

+5

HTML <table> Response.Write, , , - , Microsoft, - ASP.NET, HTML- .

+3

, ListView - , / . ListView HTML (GridView - HTML), , <asp:Table>: ", . cell. - . . . ".

, , , GridView.

+1

GridView , , html, / . , PagedDataSource AllowPaging, true.

, , GridView .

.

0

All Articles