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

Post New Answer

More ASP.NET Interview Questions

What are the different types of Session state management options available with ASP.NET?

5 Answers   Siebel Systems,

How to find last error which occurred?

0 Answers  

What is DTS package?

2 Answers   Accenture, TCS,

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.

1 Answers   ADITI,

What is the difference between mechine.config and web.config?

0 Answers  

What is the difference between an EXE and a DLL?

18 Answers   Infosys, JK Associates, Persistent, TATA, Technosoft, Wipro,

What are the different session state management options available in asp.net?

0 Answers  

Difference b/w casting and boxing?

5 Answers   IBS,

How to create multi language website in asp.net mvc? : Asp.Net MVC

0 Answers  

How many types of file extensions for razor views in ASP.Net MVC?

0 Answers  

What are the options in ASP.NET to maintain state?

0 Answers   CDC,

All kind of access specifiers for a class and for methods ?

1 Answers   MMTS,