In your application, you need to display certain data in list form, but it needs to be general purpose, does not have to be data bound, and can dynamically create rows. What type of list control is best suited for the scenario above?
-
Repeater
-
DataGrid
-
DataList
-
Table
-
TableList
D
Correct answer
Explanation
Table is the best choice for a general-purpose, non-data-bound list that needs dynamic row creation. Repeater and DataList are data-bound controls, and DataGrid requires a data source. Table (option D) provides maximum flexibility for manual row creation without data binding requirements.