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 |
If i have a page where i create an instance of a dll and without invoking any method can I send values to next page ?
Explain the difference between page.registerclientscriptblock and page.registerstartupscript?
Name the control which can be used to reserve the space on web page for storing localized data.
“~” means in asp.net application?
When should we use abtract class and Interface Class?Give an Example
4 Answers Accenture, Cap Gemini, L&T, RM,
Types of optimization and name a few ?
What is server objects in asp.net?
How can u handle Exceptions in Asp.Net?
How to kill session?
Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.
When maintaining session through sql server, what is the impact of read and write operation on session objects?
What is work flow gen? how can it will work with .Net?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)