What is the difference between repeater controls and Datalist?
i just want to know how both of these are used and how do they differ.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 19, 2011, 11:08 AM EDT
The following are a few points:
The datalist has some additional properties and templates that you can use to display its data on the other hand the Repeater control does not have any built-in layout or style and we are forced to specify all formatting-related HTML elements and style tags. The Datalist provides data selection and editing capabilities (SelectedItemTemplate, and EditItemTemplate). The events in the datalist are different than those in Repeater control.
Kunal Naik163 reputationPosted Oct 19, 2011, 11:28 AM EDT
The DataList control is similar to the Repeater control. It has some more properties and templates that you can use to display its data in a diverse fashion. The Repeater control does not have any built-in layout or style. We are forced to specify all formatting-related HTML elements and style tags. While, a DataList control provides more flexibility to display data in a desired layout. It also provides data selection and editing capabilities. In addition to the five templates (Item Template, AlternatingItem Template, Separator Template, Header Template, Footer Template that a repeater has, the DataList control has two more templates: SelectedItemTemplate, and EditItemTemplate. These templates are useful for allowing data selection and data editing functionalities.
Also see below link to know when to used these controls,
Click Here