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
Give a brief introduction on side-by-side execution. Can two applications, one using private assembly and the other using the shared assembly be stated as side-by-side executables?

I am looking for someone to work on his website via team viewer. First I would want you to fill up this. On a scale from 1 - 10 please grade the following skills- C# - AJ

How to get Herarichal Data in Treeview control from sql server database in asp.net , can you provide the source code .

Explain Compare Validator and Range Validator Compare Validator uses Control To Validate, Control To Compare and operator properties to compare a control's value with another

ASP.NET/MSSQL/ MVC completing backend solution + integrating with frontend. Project Description: System is used for tracking company's activities through several projects by

I want Workflow Designer (HTML5) Project Description: I am seeking an HTML5 designer for a custom workflow tool. It should have drop and drag functionality. Saving it as XML

What is the use of DataView? User-defined view of a table is contained in a DataView. A complete table or a small section of table depending on some criteria can be shown by an

Explain the architecture of ADO.NET in brief. AD0.NET having of two fundamental components: The DataSet, which is disconnected from the data source and does not require to k

What is managed code and managed data? Managed code is code that is written to target the services of the Common Language Runtime. In order to target these services, the code m

Define Network? A network is a set of devices linked by physical media links. A network is recursively is a connection of two or more nodes by a physical link or two or more