WHAT ARE DEFFERENCE BETWEEN DATALIST AND DATAGRID
Answer / 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|
What are the different types of Session state management options available with ASP.NET?
How to find last error which occurred?
What is DTS package?
We have 2 sites in which one site allows the user with out asking credentials and second one ask for credentials through a log page. What might be the configurations settings for both sites? We can use IIS and web.config files together.
What is the difference between mechine.config and web.config?
What is the difference between an EXE and a DLL?
What are the different session state management options available in asp.net?
Difference b/w casting and boxing?
How to create multi language website in asp.net mvc? : Asp.Net MVC
How many types of file extensions for razor views in ASP.Net MVC?
What are the options in ASP.NET to maintain state?
All kind of access specifiers for a class and for methods ?