Difference between DataList and DataGrid

  • Thread starter Thread starter weird0
  • Start date Start date
W

weird0

What is the difference between a DataList control and DataGrid
control ?


How and where are DataLists used? Can somebody place some good links
for its use.
 
weird0 said:
What is the difference between a DataList control and DataGrid
control ?


How and where are DataLists used? Can somebody place some good links
for its use.

From MSDN:

Use the DataGrid control to display the fields of a data source as columns
in a table. Each row in the DataGrid control represents a record in the data
source. The DataGrid control supports selection, editing, deleting, paging,
and sorting.

http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.datagrid.aspx

Use the DataList control to display a template-defined data bound list. The
DataList control supports selecting and editing.

The contents of the DataList control can be manipulated by using templates.
The following table lists the supported templates.

http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.datalist(vs.80).aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top