Skip to Content
0
Former Member
Mar 18, 2009 at 12:45 PM

How can Sort Items Display by Description instead that PartNumber

28 Views

Hi Guys:

I have tried several things and none of them works. The last thing that i did was to use the following Code on PartsListBlock.ascx, hopping that property "SortCode" was going to allow me to use a diferent sort criteria, but it didn't worked.

protected void GetItems()

{

NPBasePage bp;

bp = (NPBasePage)Page;

int catID;

catID = Convert.ToInt32(Request["CategoryID"]);

bp.Catalog.SortCode = 1;

PartsListGrid.DataSource = bp.Catalog.CategoryParts(catID, bp.UserID, bp.PriceList, bp.Encoding);

PartsListGrid.DataBind();

}

Does anybody has had the need to implement something like this???

Thanks