Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


WHAT ARE DEFFERENCE BETWEEN DATALIST AND DATAGRID



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

Post New Answer

More ASP.NET Interview Questions

Can we use multiple web.config files in an sigle appliction?

3 Answers   IBS,


What is the difference between Session and response.Redirect?

0 Answers   Microsoft,


How do you store a value in viewstate and retrieve them?

0 Answers  


what is webservices ? and what is web server ?

1 Answers   Wipro,


What is route in web api?

0 Answers  


How many web.copnfig can exists in a web application & which will be used ?

3 Answers   MMTS,


What do you mean by authentication?

0 Answers  


Difference Between ReadOnly and Constant Variable in compile time and Run Time.

3 Answers   Phoenix Technologies, Quadrant,


What parameters can you pass in the url of the api?

0 Answers  


What is content place holder?

0 Answers  


How do you define authentication in Web.Config?

2 Answers   Patni,


How can you dynamically add user controls to a page?

0 Answers  


Categories