If I populate a gridview with a DATAREADER and say set the gridview to 20 rows page page. If I have 2,000 rows in the reader can I iterate through ALL of the rows in the datareader?
For example
foreach (GridViewRow row in this.gridView.Rows)
{
DataRowView drv = row.DataItem as DataRowView;
EmailMessage message = new EmailMessage();
etc etc etc
So even though I am only showing the inital 20 rows will the code above iterate through all 2,000? Also can I do sorting on this?
Start Free Trial