Difference between datagrid, datalist and repeater, DOT NET Programming

What's difference between Datagrid, Datalist and repeater?

The Datalist ,Datagrid, and Repeater are all ASP.NET data Web controls.

They have many things in common such as DataBind Method ItemDataBound and DataSource Property, ItemCreated.

Whenever you assign the DataSource Property of a Datagrid to a DataSet then each DataRow present in the DataRow Collection of DataTable is given  to a corresponding DataGridItem &  this is same for the rest of the two controls also. As  The HTML code generated for a Datagrid has an HTML TABLE element created for the particular DataRow &  it is a Table form representation with Columns and Rows.

For the  Datalist its an Array of Rows and based on the Template Selection  and the RepeatColumn Property value We can specify how many DataSource records must appear per HTML

row. In brief in the datagrid we have one record per row, but in the datalist we can have 5 or 6 rows per row.

For the  Repeater Control, the Datarecords to be displayed totally depends upon the Templates specified and the only HTML generated is the due to the Templates.

Addition to these, Datagrid has a in-built support for Filter , Sort and paging the Data, which is not possible when using a DataList and for a Repeater Control we would require to write an explicit code to do paging.

Posted Date: 9/22/2012 5:16:13 AM | Location : United States

Related Discussions:- Difference between datagrid, datalist and repeater, Assignment Help, Ask Question on Difference between datagrid, datalist and repeater, Get Answer, Expert's Help, Difference between datagrid, datalist and repeater Discussions

Write discussion on Difference between datagrid, datalist and repeater
Your posts are moderated
Related Questions
What is a candidate key? A table may have more than one combination of columns that could uniquely identify the rows in a table; every combination is a candidate key. During th

We need vb.net windows application programmer with min six years exp to work on our email marketing project Project Description: We need a windows application vb.net programm

What is the difference between thread and process? The thread is a path of execution which can run on CPU; a process is a collection of threads that share the same virtual memo

What is difference between abstract classes and interfaces? The difference b/w abstract and interfaces are s follows:- 1.     The Abstract classes can have concrete methods

What is XPath? XPath stands for XML Path. It is a language used to access dissimilar parts of an XML document, such as elements and attributes.

I have a website with a photo gallery using PhotoHandler -photohandler.codeplex.com I require the code added/ modified to display the image file names under the preview or thumbnai

What is XML DOM? The DOM stands for Document Object Model, which explains the logical formation of documents and provides the way to access and manipulate a document. It suppli

What is shadowing? When 2 elements in a program have similar name, one of them can hide and shadow the one. Therefore in such cases the element which shadowed the main element

What are abstract classes? What are the distinct characteristics of an abstract class? An abstract class is a class that cannot be instantiated and is always used as a base cla

If client side validation is enabled in your Web page, does that mean server side code is not run Whenever the client side validation is enabled server emit's JavaScript code f