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
List the events in page life cycle.
How does asp.net work?
What is the web.config file in asp?
benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks
What is cached data phone?
What is Web API Routing?
What is query string? What are its advantages and limitations?
How can you send an email message from an asp.net web page?
What is a uri query?
IN an ASP.NET Web application if there is any error, how can you debug?
To redirect the user to another page which method do we use without performing a round trip to the client?
What are the session variables?
What are the differences between application object and session object?
Explain http handlers? Where we can use the http handlers?
What are assemblies and namespaces and explain the difference between them ?