Saturday, July 21, 2007

Data Controls DataGrid DataList Repeater

DataGrid
Display text and controls in colums and rows
DataGrid Controls have built-in formatting, sorting and paging capabilities
Namespace: System.Web.UI.WebControls
Each row in the DataGrid control represents a record in the data source
AutoGenerateColumns is by default true


DataGrid has following column types:
· BoundColumn: Default column type, displays item in the field as text
· ButtonColumn: Command button for each column
· EditCommandColumn: Column with editing commmand
· HyperLinkColumn: Displays contents as hyperlink
· Template Column: Allows template and custom controls

DataList:
Display rows of text and controls using a template to control appearence
DataList Controls have built-in formatting and selection capabilities

Repeater:
Display rows of other controls using a template to control appearence
Has no built-in capabilities found in the DataGrid and DataList controls

No comments: