Data binding has been further simplified in ASP.NET 2.0. The base class of bound controls comes from BaseDataBoundControl. You can go to
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.basedataboundcontrol_members(VS.80).aspx
View the class If you view the members of this class, please note the following two properties and methods
virtual object DataSource { get; set; }
virtual string DataSourceId { get; set; }
protected abstract void PerformSelect();
protected abstract void ValidateDataSource(object dataSource);
What did you see?
Think about the steps you did in ASP.NET1.X,
DataGrid1.DataSource=DataSet1.Table[0];
DataGrid1.DataBind();
GridView.DataSourceID=DataSource1;
in ASP.NET2.0
;Actually,
In ASP.NET1.X, if you use the DataSource property, the ValidateDataSource method will be called automatically. In ASP.NET2.0, if you use the DataSourceID property, the PerformSelect method will be called automatically.