ASP.NET Grid View vs. List View

前端 未结 5 750
旧时难觅i
旧时难觅i 2020-12-07 16:29

What are the advantages of using listview over gridview? I need pagination, editing rows, inserting rows, and deleting rows in my view. Which control is best for that? It

5条回答
  •  爱一瞬间的悲伤
    2020-12-07 17:03

    This article is particularly useful for a comparison.

    For me it is the raw flexibility of the HTML you can render. In a project I was developing I was using a GridView but replaced with the ListView as I wanted very specific paging requirements that couldn't be provided by the GridView. I could have used a 3rd party gridview to provide the paging requirements, but I wanted to minimise the reliance of 3rd party code.

    The ListView alone in my opinion is a good reason for moving from ASP.NET 2.0 to 3.5.

提交回复
热议问题