Professional Documents
Culture Documents
R epeater and DataList and GridView are Data-bound controls that bound to a data source control like
SqlDataSource, LinqDataSource to display and modify data in your Asp.Net web application. Data-
bound controls are composite controls that contains others Asp.Net controls like as Label, TextBox,
DropdownList etc. into a single layout. In this article, I am going to expose the difference among these
three.
DataList Repeater
Automatically generates columns from the data This features is not supported.
source.
You can arrange data items horizontally or vertically This features is not supported.
in DataList by using property RepeatDirection.
Performance is slow as compared to Repeater This is very light weight and fast data control among
all the data control.
GridView Repeater
It was introduced with Asp.Net 2.0. It was introduced with Asp.Net 1.0.
Automatically generates columns from the data This features is not supported.
source.
http://www.dotnet-tricks.com/Tutorial/aspnet/K0KJ111013-Difference-Between-Repeater-and-DataList-and-GridView.html 1/3
6/28/2014 Difference Between Repeater and DataList and GridView
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.
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.
RepeatDirection property is not supported. You can arrange data items horizontally or vertically
in DataList by using property RepeatDirection.
Doesnt support customizable row separator. Supports customizable row separator by using
SeparatorTemplate.
Print Article
Tw eet
http://www.dotnet-tricks.com/Tutorial/aspnet/K0KJ111013-Difference-Between-Repeater-and-DataList-and-GridView.html 2/3
6/28/2014 Difference Between Repeater and DataList and GridView
Shailendra Chauhan works as Software Analyst at reputed MNC and has more than 5 years of hand
over Microsoft .NET technologies. He is a .NET Consultant and is the founder & chief editor of
www.dotnet-tricks.com and www.dotnetinterviewtricks.com blogs. He is an author of book ASP.NET
MVC Interview Questions and Answers.
He loves to work with web applications and mobile apps using Microsoft technology including ASP.NET,
MVC, C#, SQL Server, WCF, Web API, Entity Framework,Cloud Computing, Windows Azure, jQuery,
jQuery Mobile, Knockout.js, Angular.js and many more web technologies. More...
http://www.dotnet-tricks.com/Tutorial/aspnet/K0KJ111013-Difference-Between-Repeater-and-DataList-and-GridView.html 3/3