Author Topic: Ordering entries in a combo box  (Read 1654 times)

0 Members and 1 Guest are viewing this topic.

Tyke

  • Guest
Ordering entries in a combo box
« on: March 02, 2010, 06:49:28 AM »
I have a combobox that I've populated with the names of all the layers in the drawing. In the dropdown list the layers are not ordered.

Is there a way to order the layer names alphabetically?

Thanks

Atook

  • Swamp Rat
  • Posts: 941
Re: Ordering entries in a combo box
« Reply #1 on: March 02, 2010, 01:15:11 PM »
I don't think so. In the past I've sorted the list before populating the combobox.

Matt__W

  • Seagull
  • Posts: 12954
  • I like my water diluted.
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

Tyke

  • Guest
Re: Ordering entries in a combo box
« Reply #3 on: March 03, 2010, 07:06:23 AM »
Thanks Matt,

The link was the answer. The sort had to be modified a little but it now sorts all the layer names in alphabetical order.

If anybody is interested I can post the final version.

Matt__W

  • Seagull
  • Posts: 12954
  • I like my water diluted.
Re: Ordering entries in a combo box
« Reply #4 on: March 03, 2010, 08:25:50 AM »
You're welcome.
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io