Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need unordered list

Status
Not open for further replies.

clanm

Programmer
Dec 26, 2005
237
US
I have the following code which I try to call when my datagrid is in Edit Mode:

Function GetWPActEvmethod() As Hashtable
Dim myHT As New Hashtable
myHT.Add("Direct Units", "Direct Units")
myHT.Add("Assigned Percent Complete", "Assigned Percent Complete")
myHT.Add("Weighted Milestones", "Weighted Milestones")
myHT.Add("Milestone / Schedule Percent Complete", "Milestone / Schedule Percent Complete")
myHT.Add("Apportioned", "Apportioned")
myHT.Add("Level Of Effort", "Level Of Effort")
Return myHT
End Function

I don't really want an ordered list b/c my first item in the collection should be Direct Units, and I don't want to have to place a number in front of each item just to make them ordered. I tried this hashtable code, but with NULLs in the db, I guess you can't use hashtables, nor are they index by 0,1,2,3, etc. I tried a simplelist() with the two namespaces System.collections and System imported for my page, but intellisense doesn't pick it up.

Any ideas?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top