Data Controls in ASP.NET 4.0:
What is DataControls:
DataControls are used to display table format of data. Upto previous we display single cell informaition in labels and some other controls. If we need to display table format data for that purpose we refer Data Controls to display that data.
There are 2 types of controls to display the table format of data.
- Single Row Data Controls
- Multiple Row Data Controls
Single Row Data Controls:
FormView The Unique feature of this control is inserting . We no need to insert the data in outside just we did in that control itself.
DetailsView A more restricted way to display a single record in table format, no need to Design a page in source. Just drag & drop the control and bind the datasource it will work.
Multiple Row Data Controls:
GridView : It used to display the table format of data. Default behavior of this control is display the data without Auto generate columns. This will give flexible result to display table structure of data.
Repeater: A simple control for displaying data in tabular format, but the specialty of this controls is faster execution.
DataList:The unique feature of this control is display the result in column wise.
ListView: This will give all format of data like GridView , DataList, Repeater and Form view type of data. This is the richest control to display table structure of data.
In the above all controls give some great features. But in that total list ListView works beautiful and this will give all format of data like Columns, Faster Execution, Insertion and Table structure also.
Hope this will give brief description about all Data controls.