Difference between datagrid, datalist and repeater, DOT NET Programming

Assignment Help:

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.


Related Discussions:- Difference between datagrid, datalist and repeater

How to prevent .net dll to be decompiled?, Prevent .NET DLL to be decompile...

Prevent .NET DLL to be decompiled By design phase .NET embeds rich Metadata inside the executable code using the MSIL. Anyone can easily  decompile DLL back using tools such as

Explain assemblies, Explain assemblies An assembly is a single deployab...

Explain assemblies An assembly is a single deployable unit that having all the information about the implementation of : - classes - structures and - interfaces An

Basic use of "dataview", What is basic use of "DataView"? The "DataView...

What is basic use of "DataView"? The "DataView" represents the whole table or can be small parts of rows depending on some criteria. It is the best used for sorting and finding

What is the use of a global.asax file in asp.net, Question: (a) Outlin...

Question: (a) Outline four classes that allow you to work with File Streams. (b) (i) What potential problem can arise when you change items stored in an Application State

Need mvc coder for xlsx/csv file reader, Xlsx/Csv File Reader Need C# MV...

Xlsx/Csv File Reader Need C# MVC coder that will do the following- Take a filepath for an online xlsx, xls or csv file (must be able to handle each of these formats) as well

Difference between asp and asp.net, How would ASP and ASP.NET apps run at t...

How would ASP and ASP.NET apps run at the same time on the same server? Both ASP and ASP.net can be run at similar server, becuase IIS has the capability to respond/serve both

Prepare a script to automate the software muvee reveal, Prepare a script to...

Prepare a script to automate the software "muvee Reveal" Project Description: My name is Mark, I run a company engaged in E-Learning products. We looked for a long time fo

Absolute and sliding expiration, What is Absolute and Sliding expiration? ...

What is Absolute and Sliding expiration? The Absolute Expiration allows you to specify the duration of the cache, beginning from the time the cache is activated. The given exam

Various objects in dataset, What are the various objects in Dataset? Th...

What are the various objects in Dataset? The Dataset has a collection of DataTable object inside the Tables collection. Every DataTable object have  a collection of DataRow obj

What is the meaning of object pooling, What is the meaning of object poolin...

What is the meaning of object pooling? Object pooling is a method of storing a pool (group) of objects in memory that can be reused later as needed. Whenever, a new object is n

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd