Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Commerce Server SDK > Descending Sort...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 266 of 274
Post > Topic >>

Descending Sort does not work

by =?Utf-8?B?aG1r?= <hmk@[EMAIL PROTECTED] > Dec 28, 2007 at 02:32 PM

I am using Microsoft.CommerceServer.SearchOption class to sort a GridView 
either ASC or DESC.  The search is performed on a Profile class.

profile.ExecuteSearch() does not work correctly when SortDescending is set

to true. It always returns in ascending order. 

searchOption.SortProperties ="PropName";
searchOption.SortDescending=true;
profile.ExecuteSearch(entity, filter, searchOptions);

I also tried searchOption.SortProperties="[PropName]DESC" which raises an 
exception because it cannot find the property.

I used SQL profiles and it shows that in both scenarios the order is done
in 
ascending order.

Any help would be very much appreciated. Please note I am new to Commerce 
Server.
 




 1 Posts in Topic:
Descending Sort does not work
=?Utf-8?B?aG1r?= <hmk@  2007-12-28 14:32:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 12:57:23 CST 2008.