DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 20 Aug 2007 10:23:00 -0400,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Mufasa
          2    unknown


Putting things at the bottom of a list.   
I have a drop down list with a bunch of items from a datatable. I want to 
have it so that there are a couple of items that will always appear at the 
bottom. I know how to get it at the top ( leading spaces ) can anybody make 
any suggestions on how to have it at the bottom. I could add a sort field 
but I'd rather not. It would be nice if there was some character that I 
could put that wouldn't be obvious to the user.

TIA - Jeff.
Date:Mon, 20 Aug 2007 10:23:00 -0400   Author:  

Re: Putting things at the bottom of a list.   
The easiest method would be to have the items sorted before binding
the DataTable. Where are these items coming from? If it's a database,
then you could store an "order" number against each itme and then
include an "order by" clause. If they are not coming from a database,
then when you add them to the DataTable, you just have to make sure
that you add them in the correct order.

Mark,
http://aspnetlibrary.com
Date:Mon, 20 Aug 2007 14:31:53 -0000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us