protected override DataSourceSelectArguments CreateDataSourceSelectArguments ()
{
DataSourceSelectArguments arg = new DataSourceSelectArguments ();
DataSourceView view = GetData ();
if (AllowPaging && view.CanPage) {
arg.StartRowIndex = PageIndex;
if (view.CanRetrieveTotalRowCount) {
arg.RetrieveTotalRowCount = true;
arg.MaximumRows = 1;
}
else {
arg.MaximumRows = -1;
}
}
return arg;
}