SqlDataSource mySource = new SqlDataSource("ConnectionString","SelectStatement");
IEnumerable myEnum = mySource.Select(DataSourceSelectArguments.Empty);
IEnumerator myCount = myEnum.GetEnumerator();
while(myCount.MoveNext()) //Iterate through each row
{
DataRowView myView = (DataRowView)myCount.Current; //This is the current row
//Do something with this row
}
foreach (var currentView in mySource.Select(DataSourceSelectArguments.Empty))
{
// Do something with currentView (may need to give it a type if you are interested in it)
}