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 Questions in DOT NET
Case We sell pdf''s from our site and pdfs can be ordered from the site by selecting a book, putting it in a shopping cart, then signing in with a password or as a guest, and then checking out. For some reason, when a pu ...
|
Scenario User Modelling Inc. would like to organize a series of conferences focusing on research topics in the area of user adaptive systems and personalization. They need to organize annual conferences for researchers a ...
|
ASSIGNMENT SPECIFICATION This assignment is split into two documents. 1. Assignment Specification. This document contains the specification for what you will be required to do. 2. Assignment Addendum. This document conta ...
|
Summary This assessment requires you to develop a simple text editor with a basic offline user login. It is a windows application that will allow new uses to be added, existing users to login, and to create/save/edit tex ...
|
|
-
4,153,160 Questions Asked
13,132 Experts
2,558,936 Questions Answered
Ask Experts for help!!
Looking for Assignment Help?
Start excelling in your Courses,
Get help with Assignment
Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.
Ask Now
Help with Problems, Get a Best Answer
Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate
|
Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p
|
Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As
|
Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int
|
Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As
|
|