What are the advantages and disadvantages of using datalist ?

Questions by madhureddy318

Editorial / Best Answer

spandanapotla  

  • Member Since Mar-2008 | Apr 4th, 2008


Adv: the DataList's display is defined via templates,DataList allows for much more customization of the rendered HTML markup , by which it is more user-friendly displays of data.

DisAdv:
adding such functionality with the DataList takes more development time than with the DataGrid, as

  • The Edit/Update/Cancel buttons that can be created in a DataGrid via the EditCommandColumn column type, must be manually added to the DataList, and
  • The DataGrid BoundColumn column types automatically use a TextBox Web control for the editing interface, whereas with the DataList you must explicitly specify the editing interface for the item being edited via the EditItemTemplate.

Showing Answers 1 - 5 of 5 Answers

Rajsekhar

  • Aug 25th, 2006
 

Hi,

     Datalist control is just like the repeater control used to bound the repeated list of items to the control.

Disadvantages

      we can't do the paging and sorting with datalist controls.

      

  Was this answer useful?  Yes

gouri

  • Aug 29th, 2006
 

Hi,

Datalist is updateable and datareader is not updateable

  Was this answer useful?  Yes

Adv: the DataList's display is defined via templates,DataList allows for much more customization of the rendered HTML markup , by which it is more user-friendly displays of data.

DisAdv:
adding such functionality with the DataList takes more development time than with the DataGrid, as

  • The Edit/Update/Cancel buttons that can be created in a DataGrid via the EditCommandColumn column type, must be manually added to the DataList, and
  • The DataGrid BoundColumn column types automatically use a TextBox Web control for the editing interface, whereas with the DataList you must explicitly specify the editing interface for the item being edited via the EditItemTemplate.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions