GridView and DataList re data-bound control used to display and modify
data from Asp.Net web form/appliaction.These control also conatin other asp.net
control like label,textbox,checkbox,radio-
Button ,dropdown, image-control etc.These control are also bound with data
source control like SqlDataSource,LinqDataSource to display data and to modify
data in asp.net web form.
Difference Between GridView and DataList:-
GridView
|
DataList
|
1.It was introduced in
Asp.Net 2.0.
|
1. It was introduced in
Asp.Net 1.0.
|
2. It support built-in paging
and sorting.
|
2. need to write custom code.
|
3. It support built-in update
and delete operation.
|
3. need to write custom code.
|
4.It support auto format or
style feature.
|
4. not supported.
|
5. RepeatDirection property
not supported.
|
5. Arrange data item
horizontly or vertically by using property RepeatDirection.
|
6.Does not support
customisable row seperator.
|
6.Support customisable row
seperator by SeperatorTemplate.
|
7. Performance is slow as
compared to DataList.
|
7. Performance is faster than
as compared to GridView.
|
No comments:
Post a Comment
Note: only a member of this blog may post a comment.