|
|
Differences between Datagrid, Datalist and Repeater? - .Net
|
Views : 232
|
|
Tagged in : .Net
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
1. Datagrid has paging while Datalist doesnt.
2. Datalist has a property called repeat. Direction = vertical/horizontal. (This is of great help in designing layouts). This is not there in Datagrid.
3. A repeater is used when more intimate control over html generation is required.
4. When only checkboxes/radiobuttons are repeatedly served then a checkboxlist or radiobuttonlist are used as they involve fewer overheads than aDatagrid.
The Repeater repeats a chunk of HTML you write, it has the least functionality of the three. DataList is the next step up from a Repeater; accept you have very little control over the HTML that the control renders. DataList is the first of the three controls that allow you Repeat-Columns horizontally or vertically. Finally, theDataGrid is the motherload. However, instead of working on a row-by-row basis, we’re working on a column-by-column basis. DataGrid caters to sorting and has basic paging for our disposal. Again we have little contro, over the HTML.
NOTE: DataList and DataGrid both render as HTML tables by default. |
|
By Nithya, On - 2010-01-30 |
|
|
|