ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
WHAT ARE DEFFERENCE BETWEEN DATALIST AND DATAGRID
 Question Submitted By :: Yoshita Kundwani
I also faced this Question!!     Rank Answer Posted By  
 
  Re: WHAT ARE DEFFERENCE BETWEEN DATALIST AND DATAGRID
Answer
# 1
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 ?    1 Yes 1 No
Amit Das
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
what are the attributes of sitemapnode? Satyam3
Difference between server.Execute and response.redirect ? Keane-India-Ltd3
Diff B/W user control and server control  3
what is Master pages in asp.net? what is the advantages and disadvantages?  2
What Name space does the web page belon in the .net framework class hierarchy? Wipro1
State management in asp.net ? Accenture4
Can you explain what inheritance is and an example of when you might use it?  3
When is the ViewState available during the page processing cycle ?  3
What does the "EnableViewState" property do? Why would I want it on or off? Syntax-Softtech1
What is Hybrid dictionary  1
How do you relate an aspx page with its code behind page ? Accenture3
Difference Between ReadOnly and Constant Variable in compile time and Run Time. Phoenix-Technologies3
I am having four text boxes in my web application. I am setting Required Field validator to each Text box. And I am having two buttons in my application. If i clicked the first button only first two text box validation will get fire. Dont show error message for remaining two text box. If i clicked second button last two text box validation will get fired. It will not consider the first two validation controls. That is how to enable and disable the validation controls.  4
How do you create a permanent cookie?  2
what are webservices?In which circumstances we can go for webservices? Microsoft2
when to use webservice and when to use remotong diff between them  3
Where does the Web page belong in the .NET Framework class hierarchy? Visual-Soft1
What is the function of the CustomValidator? a) It allows for custom C# client-side code to validate entries in a control. b) It allows for a custom mixture of validator controls to use one central control for the display of messages. c) It uses scripted client-side code to validate the entry in a control. d) It uses server-side code to validate the entry in a control. Syntax-Softtech2
What object is used to encapsulate a rowset? a) DataSet b) DataAdapter c) DataRowSet d) DataTable Syntax-Softtech2
What is difference b/w Data Grid in ASP.Net 1.1 and Gridview in 2.0 IntraLogic9
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com