Difference between ListView and GridView:-
ListView
|
GridView
|
It was introduced with Asp.Net
3.5.
|
It was introduced with Asp.Net
2.0.
|
Template driven.
|
Rendered as Table.
|
Built-in supports for Data
grouping.
|
Need to write custom code.
|
Built-in supports for Insert
operation.
|
Need to write custom code.
|
Provides flexible layout to your
data.
|
Need to write custom code.
|
Performance is fast is compared to
GridView.
|
Performance is slow as compared to
ListView.
|
Difference between GridView and DataGrid:-
GridView
|
DataGrid
|
It was introduced with Asp.Net
2.0.
|
It was introduced with Asp.Net
1.0.
|
Built-in supports for Paging and
Sorting.
|
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.
|
Built-in supports for Update and
Delete operations.
|
Need to write code for
implementing Update and Delete operations.
|
Supports auto format or style
features.
|
This features is not supported.
|
Performance is slow as compared to
DataGrid
|
Performance is fast as compared to
GridView.
|
Difference between GridView and DataList:-
GridView
|
DataList
|
It was introduced with Asp.Net
2.0.
|
It was introduced with Asp.Net
1.0.
|
Built-in Paging and Sorting is
provided.
|
You need to write custom code.
|
Built-in supports for Update and
Delete operations.
|
Need to write code for
implementing Update and Delete operations.
|
Supports auto format or style
features.
|
This features is not supported.
|
RepeatDirection property is not
supported.
|
You can arrange data items
horizontally or vertically in DataList by using property RepeatDirection.
|
Doesn’t support customizable row
separator.
|
Supports customizable row
separator by using SeparatorTemplate.
|
Performance is slow as compared to
DataList.
|
Performance is fast is compared to
GridView.
|
Difference between GridView and Repeater:-
GridView
|
Repeater
|
It was introduced with Asp.Net
2.0.
|
It was introduced with Asp.Net
1.0.
|
Automatically generates columns
from the data source.
|
This features is not supported.
|
Rendered as Table.
|
Template driven.
|
Selection of row is supported.
|
Selection of row is not supported.
|
Editing of contents is supported.
|
Editing of contents is not
supported.
|
Built-in Paging and Sorting is
provided.
|
You need to write custom code.
|
Performance is very slow as
compared to Repeater.
|
This is very light weight and fast
data control among all the data control.
|
Difference between DataList and Repeater:-
DataList
|
Repeater
|
Rendered as Table.
|
Template driven.
|
Automatically generates columns
from the data source.
|
This features is not supported.
|
Selection of row is supported.
|
Selection of row is not supported.
|
Editing of contents is supported.
|
Editing of contents is not
supported.
|
You can arrange data items
horizontally or vertically in DataList by using property RepeatDirection.
|
This features is not supported.
|
Performance is slow as compared to
Repeater
|
This is very light weight and fast
data control among all the data control.
|
No comments:
Post a Comment