Listbox Sorting in .NET 3.0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Am I crazy, is there no sorting of listboxes under .NET 3.0. Make a new app,
add a listbox and see no Sorted property. Add strings and they just go to the
bottom.

Thanks,
Rich Sienkiewicz
Inflexis Corp.
 
Sorted is not in my intelli-sense. Same with a ListView, it has no Sorting
property like the help says it should. And I get compile errors if I try to
use it ("does not contain a definition for Sorted"). This is .NET 3.0 being
developed with VS 2005.

Thanks,
Rich Sienkiewicz
 
Even unser VS2008 Beta 2 I get no Sort or Sorting property on ListBox and
ListView. What gives?
 
RSienkiewicz said:
Even unser VS2008 Beta 2 I get no Sort or Sorting property on ListBox and
ListView. What gives?
Right you are, in a WPF application. When I create a Windows Forms
application in VS 2008 Beta 2, the Sorted property is there for the ListBox.
Similarly, if I create a Windows Forms app in VS 2005 (with .NET 3.0 and
extensions installed), I get the "standard" ListBox with the Sorted
property. If I create a .NET 3.0 app in VS 2005, I get the "other" LIstBox
with no Sorted property. I don't know the difference in WPF (yet), but I'm
going to look into it further and will get back to you if I discover
anything interesting.
 
I've also noticed that the System.Web.UI ListBox control does *not*
implement Sort() either. Anyone know why?
 
Back
Top