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 is state management in .net?
Differentiate between authentication and authorization.
What is a windows service?
When we use cookie less session? Explain its working?
Which is better union or union all?
Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?
Can I recieve both html markup for page and code in the asp.net web page's source code portion in the web browser?
How can you identify that the page is post back?
Explain the difference between singleton and single call?
How would you create a permanent cookie?
Why cyclomatic complexity is important?
What are the different types of events are occured when a client requests an ASP.NET page from IIS server?
Why session is necessary in web application?
Explain a program using razor view engine to create a simple application? : asp.net mvc
What is recordset asp?