Page 1 of 1
Alphabetizing Pull Sheet
Posted: Mon Nov 15, 2010 10:01 am
by kens
Hi all-
Is there an easy way to alphabeetize the pull sheet?
Thanks
Ken
Re: Alphabetizing Pull Sheet
Posted: Mon Nov 15, 2010 10:09 am
by mazhar
Can you explain this in details? Are you looking to sort pull sheet items in alphabetical order?
Re: Alphabetizing Pull Sheet
Posted: Mon Nov 15, 2010 10:18 am
by kens
Mazhar-
Yes, I would like to have the items on the list sorted alphabetically. This would make it easier for my pullers on a busy Monday morning.
Thanks
Ken
Re: Alphabetizing Pull Sheet
Posted: Mon Nov 22, 2010 5:59 am
by mazhar
Give this a try, edit your Admin/Orders/Print/PullSheet.aspx.cs file and locate following code line
Code: Select all
ItemGrid.DataSource = OrderPullItemDataSource.GeneratePullSheet(selectedOrders.ToArray());
and make it look like
Code: Select all
OrderPullItemCollection items = OrderPullItemDataSource.GeneratePullSheet(selectedOrders.ToArray());
items.Sort(new CommerceBuilder.Common.GenericComparer("Name", GenericComparer.SortDirection.ASC));
ItemGrid.DataSource = items;
Re: Alphabetizing Pull Sheet
Posted: Thu Dec 16, 2010 12:11 am
by kens
Thanks Mazhar!
It turns out it would not work using ("Name", GenericComparer.SortDirection.ASC)); , I had to remove the , GenericComparer.SortDirection.ASC - otherwise I got an error about the wrong number of type arguments, But that's ok, it sorts now!
Thanks again for all your help.
Ken