WHAT ARE DEFFERENCE BETWEEN DATALIST AND DATAGRID
Answer Posted / amit das
A Datagrid, Datalist are ASP.NET data Web controls.
They have many things in common like DataSource Property ,
DataBind Method ItemDataBound and ItemCreated .
When you assign the DataSource Property of a Datagrid to a
DataSet then each DataRow present in the DataRow Collection
of DataTable is assigned to a corresponding DataGridItem
and this is same for the rest of the two controls also.
But The HTML code generated for a Datagrid has an HTML
TABLE <ROW> element created for the particular DataRow and
its a Table form representation with Columns and Rows.
For a Datalist its an Array of Rows and based on the
Template Selected and the RepeatColumn Property value We
can specify how many DataSource records should appear per
HTML <table> row.
In addition to these , Datagrid has a inbuild support for
Sort,Filter 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.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
what are configuration files?
What are sessions in asp net?
Can I stream live content/events?
What’s the use of “GLOBAL.ASAX” file?
Is oauth for authentication or authorization?
How to use push notification?
Can one dll file contains the compiled code of more than one .net language?
What do you mean by authentication?
Why SessionID changes in every request in asp.net?
What are the Types of objects in ASP
1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?
What is server side in asp.net?
Give some salient points of difference between request processor and request dispatcher.
What are the various types of validation controls provided by asp.net?
Describe SOA and the tenets of it?