Sort order on drop down lists


I've created a series of drop downs. The parent on contains ~150 items. These items are not sorted alphabetically as they are in the source list. Is there some setting or is this an issue w/ the code?


ofergal wrote Oct 20, 2010 at 1:24 PM

In the file X method CreateChildControls()
if (!listNotFound)
            // populate it with the values from the central master page list.
            DataView dv = new DataView(list.Items.GetDataTable());
Add a line
            dv.Sort = dv.Table.Columns[0].ColumnName;
That should take care of the sort order of the parent.

wrote Mar 17, 2011 at 8:00 AM

mauriciosa wrote Nov 19, 2011 at 10:57 AM

Hi there. Can someone please explain how to implement this? thanks

wrote Nov 19, 2011 at 10:57 AM

wrote Feb 14, 2013 at 9:39 PM