Don't forget to give me a shout out if this helped you!! .... shout out = nice comment :)
***** Helper Method for Sorting ListBoxes *********
private void SortListbox(ListBox box)
{
SortedList sortedItems = new SortedList();
for(int i = 0; box.Items.Count - i != 0; i++)
{
sortedItems.Add(box.Items[i].Text, box.Items[i].Value);
}
if (sortedItems.Count != 0)
{
box.Items.Clear();
box.DataSource = sortedItems;
box.DataTextField = "key";
box.DataValueField = "value";
box.DataBind();
}
}
Pete Orologas