data controls in asp.net

3,854 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
3,854
On SlideShare
0
From Embeds
0
Number of Embeds
24
Actions
Shares
0
Downloads
71
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

data controls in asp.net

  1. 1. Bind to many data sources Collections Array HashTable ADO.NET DataReader DataSet XML
  2. 2. The ADO.NET DataReader to retrieve a read-only, forward-only stream of data from a database. Results arereturned as the query executes, and are stored in the network bufferon the client until you request them using the Read method of theDataReader. Datasets store a copy of data from the databasetables. However, Datasets can not directly retrieve data fromDatabases. DataAdapters are used to link Databases with DataSets. Ifwe see diagrammatically. Databases  Data Providers  DataAdapters  DataSets
  3. 3. ConnectionCommandDataReaderDataSetDataAdapterDataView
  4. 4. DataAdapter is a part of the ADO.NETData Provider. DataAdapter provides the communicationbetween the Dataset and the Datasource. We can use theDataAdapter in combination with the DataSet Object. That isthese two objects combine to enable both data access and datamanipulation capabilities. A Data View enables you to create differentviews of the data stored in a Data Table, a capability that is oftenused in data-binding applications. Using a DataView, you can exposethe data in a table with different sort orders, and you can filter thedata by row state or based on a filter expression.
  5. 5. DataSet DatabaseAuthors Connection Authors DataAdapter Select … from Authors
  6. 6. DataSet Database Authors Connection Publishers DataAdapterPublishers Select … from Publishers
  7. 7. DataSet Authors DataGrid RepeaterPublishers DataList Data View
  8. 8.  Displays data as a table Control over  Alternate item  Header  Footer  Colors, font, borders, etc.  Paging Updateable Item as row
  9. 9. List formatNo default outputMore controlMore complexityItem as rowNot updateable
  10. 10. Directional renderingGood for columnsItem as cellAlternate itemUpdateable

×