Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Repeater, DataList, DatGrid
Message
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Divers
Thread ID:
00663871
Message ID:
00663888
Vues:
13
>Hi,
> What is the diffence between Repeater, DataList, DatGrid?
>
>Thank you

First, the three iterative controls that you mention all support templates (a way to define how your control will be rendered) and data binding to a dataset or collection.

The repeater control has no built in layout so you must explicitly define all HTML in the templates.

The DataList allows selecting and editing through its support of more templates (SelectItemTemplate and EditItemTemplate) and events.

The DataGrid is the most sophisticated control because it supports paging, edit-in-place and sorting and is rendered as a HTML table. The templates for the DataGrid apply to specific columns of the control not to each dataitem like in the DataList.

The UI that Visual Studio uses to handle editing of each type of control is different too. For DataGrid, right clicking gives you a property builder for setting up all the columns and layouts. Right clicking on a DataList and going to Edit Template just puts you into a Edit Template mode where you have to drag and drop controls onto each template
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform