Gridview vs Listview [Resolved]

Posted by Somu475 under ASP.NET on 11/28/2012 | Points: 10 | Views : 6620 | Status : [Member] | Replies : 4
Hi All,

Can someone explain me the scenarios where we can use Gridview & Listview.
As both can be used to perform CRUD functionalities, which one is better and in which scenarios they are better....???

Mainly explain the benefits of both compared to each other.
Plz don't provide any links...

-Somu


Responses

Posted by: Pratyupalati on: 11/28/2012 [Member] Starter | Points: 50

Up
0
Down

Resolved
Hi,

Features of ListView:

1.Support for binding to data source controls such as SqlDataSource, LinqDataSource, and ObjectDataSource.

2.Built-in sorting,update,delete and insert capabilities.

3.Support for paging capabilities by using a DataPager control.

4.Customizable appearance through user-defined templates and styles.

Features of GridView:

1.Binding to data source controls, such as SqlDataSource.

2.Built-in sort,update,delete and paging capabilities.

3.Customizable appearance through themes and styles.

ListView vs GridView:

1.ListView Provide Flexible Layout not GridView.

2.Data Grouping is supported by ListView not by GridView

3.Insert is only supported by Listview not GridView.


Somu475, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Narla.Venkatesh on: 11/28/2012 [Member] Starter | Points: 25

Up
0
Down
hi..
Refer these links

http://www.dotnetfunda.com/tutorials/controls/gridview.aspx

http://www.dotnetfunda.com/articles/article121.aspx

regards
Venkatesh

Somu475, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Somu475 on: 11/28/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Pratyupalati,

Nice explanation... Thank u...

-Somu

Somu475, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Pratyupalati on: 11/29/2012 [Member] Starter | Points: 25

Up
0
Down

You are welcome.

Somu475, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response