ObjectDatasource Deep Dive @ 515AB

ObjectDataSource Events:

  • Creating, Created (can assign to ObjectInstance)
  • Selecting Filtering Updating, Deleting, Inserting (can validate and manipulate parameters)
  • Selected Updated Inserting, Deleted
  • Disposing

ObjectDatasource combines the DataAdapter, DataSet, and SqlCommands into one object(?). It supports automatic sorting, paging (in UI only) and custom sorting/paging (which is implemented in a middle-tier object which provides better performance).

Binding to Middle Tier Objects: Declaratively associate parameters (even custom parameters) to business objects methods. You can filter by QueryString or bound controls. Master-Detail binding works the same way.

New ObjectDataSource control supports multiple SQL parameters, unlike existing DataGrid control (huh?). Unfortunately, GridView just like a the DataGrid still does not support multi-row edit capabilities. We continue to have to build this in ourselves.

Demo uses multiple ObjectDataSources that separately support custom paging or custom sorting. I wonder if these HAVE to be SEPARATE controls?

Excuse me if these notes are my worst. I think I'm crashing off the DayQuil. My nose has certainly been running like crazy (hence why I started hiding in the back of the sessions).

Tags: []

posted @ Thursday, September 15, 2005 6:08 PM

Print

Comments on this entry:

No comments posted yet.

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«March»
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910