Introduction
In this article we will learn the difference between GridView and DataGrid and Difference between ListView and GridView.
Why GridView DataGrid And ListView Used
These controls are used to display data and also for modify the data. Grid View is very popular for to display data in tabular form in Asp.Net Web Based Application.
DataGrid and GridView Difference:
Grid View
|
Data Grid
|
Introduced with Asp.Net
2.0.
|
Introduced with Asp.Net
1.0.
|
It Supports auto format
features.
|
This features is not
supported.
|
Performance is slow as
compared to DataGrid.
|
Performance is fast as
compared to GridView.
|
Provides Built-in supports
for Update and Delete operations.
|
Need to write code for
implementing Update and Delete operations.
|
Provides Built-in supports for Sorting and Paging.
|
For sorting you need to
handle SortCommand event and rebind grid required and for paging you need to
handle the PageIndexChanged event and rebind grid required.
|
GridView and ListView Difference:
Grid View
|
ListView
|
Introduced with Asp.Net 2.0.
|
Introduced with Asp.Net 3.5.
|
Rendered as table.
|
Template Driven.
|
Need to write custom code for Insert Operation.
|
Provides Built-in support for Insert Operation.
|
Need to write custom code for Data grouping.
|
Provides Built-in support for Data grouping.
|
Performance is slow as compared to ListView.
|
Performance is faster as compared to GridView.
|
0 comments:
Post a Comment