Hi.
I had a gridview with paging and because of this, if i do a foreach for grid items i only get the current page items.
As far i know i could set the allow paging to false, rebind it , and gett all items this way, using a foreach (for example)
Since my work at the moment is upgrading some one else work, i would try to avoid this aproach, since that causes me issues on rebind data source on gridview. due to programing logic already implemented.
Is there any way to get All items from datasource, who where primarily bind to grid besides my aproach?
my current aproach:
...
this.RadGrid1.AllowPaging = false;
this.RadGrid1.Rebind();
...
I had a gridview with paging and because of this, if i do a foreach for grid items i only get the current page items.
As far i know i could set the allow paging to false, rebind it , and gett all items this way, using a foreach (for example)
Since my work at the moment is upgrading some one else work, i would try to avoid this aproach, since that causes me issues on rebind data source on gridview. due to programing logic already implemented.
Is there any way to get All items from datasource, who where primarily bind to grid besides my aproach?
my current aproach:
...
this.RadGrid1.AllowPaging = false;
this.RadGrid1.Rebind();
...