Please tel me is sorting required on page ".cs" again. in following cases?
in all following cases we are using dataset or datatable to store in session and then to we take it out to bind to grid with datatable or dataview after filltering.
1)i am getting sorted data from database and keeping it in session then from session i take it out and bind the grid .
2)i am getting sorted data from database and keep it in session then from session i take it out and bind the grid with view after filltering .
3)i am getting sorted data from database and binding the grid directally.
4) i am creating a new datatable and adding rows at runtime in a order and then i bind it to grid. should i sort again.
5)i am getting sorted data from database into dataset or datatable and using foreach to iterate the datatable, will it iterate in same order in which i got it from database.
6)i am getting sorted data from database and keeping the dataset or datatable in session then we take it out to use foreach ,will it iterate in same order in which i got it from database.
please consider above case with and with out typed dataset.
rajemessage
Member
2 Points
11 Posts
is sort required after sorting in database.
May 06, 2012 03:23 PM|LINK
Dear All
Please tel me is sorting required on page ".cs" again. in following cases?
in all following cases we are using dataset or datatable to store in session and then to we take it out to bind to grid with datatable or dataview after filltering.
1)i am getting sorted data from database and keeping it in session then from session i take it out and bind the grid .
2)i am getting sorted data from database and keep it in session then from session i take it out and bind the grid with view after filltering .
3)i am getting sorted data from database and binding the grid directally.
4) i am creating a new datatable and adding rows at runtime in a order and then i bind it to grid. should i sort again.
5)i am getting sorted data from database into dataset or datatable and using foreach to iterate the datatable, will it iterate in same order in which i got it from database.
6)i am getting sorted data from database and keeping the dataset or datatable in session then we take it out to use foreach ,will it iterate in same order in which i got it from database.
please consider above case with and with out typed dataset.
yours sincerely
</div>gaikwad_anil...
Contributor
2805 Points
534 Posts
Re: is sort required after sorting in database.
May 06, 2012 03:26 PM|LINK
1. No need to sort again
2. No need to sort again hereas data will ne in same order only filtered rows will you get
3. No need to sort again
4. No need to sort again
5. No need to sort again
www.thecodekey.com
Please mark as answer if useful