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

What are app services?

0 Answers  


What event handlers can I include in Global.asax ?

1 Answers  


What is the difference between Server.Transfer and Response.Redirect? Why would you choose one over the other?

26 Answers   Syntax Softtech,


What is syntax code to send email from an asp.net application?

0 Answers  


If we write return statement in finally block will it works fine or throws any error?

1 Answers   Patni,


Why asp.net is better than php?

0 Answers  


Why do I get error message "could not load type" whenever I browse to my asp.net web site?

0 Answers  


Can we mention error in web.config file?

2 Answers  


What are the type of session in Asp.Net

3 Answers  


What is state management react?

0 Answers  


Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc

0 Answers  


Will session work if cookies is disabled?

0 Answers  


Categories