Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 03-03-2006, 03:33 AM   #1 (permalink)
rikb53
Registered User
 
Join Date: Jan 2006
Posts: 29
rikb53 is on a distinguished road
MultiColumn ListBox w/ Sortable Headers in .aspx

once again my boss has tasked me with bringing what was available in Windows Forms (vb.net) to the .aspx pages.
i Originally had a list box with a list of email addresses, you could highlight one, hit a > button and add it to another listbox. pretty straight forward. now he wants the list box to have separate columns, [name, dept,email address].
and of course that they be sortable and when one is added from the left-hand side list to the right hand side, that it no longer be available in the list.
my first thought was - i dont think that exists as a native control in visual studio for asp web controls.
my second thought is - why not go with a datagrid - except the sort usually goes back to the database and the list could possibly be refreshed with items that have already been selected.
any suggestions - or references to projects like this on line would be appreciated.
thanks
rik
rikb53 is offline   Reply With Quote
Old 03-22-2006, 07:01 PM   #2 (permalink)
rdove
Masked Moderator
 
rdove's Avatar
 
Join Date: May 2002
Location: Indianapolis, IN
Posts: 260
rdove is on a distinguished road
You can push your data into a DataSet. Then create a DataView, push your Dataset into the DataView and use th Sort property of the DataView to sort you data how you need it. Then in your list box set the datasource property to the dataview and then do a databind.
__________________
~Ryan

rdove is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 04:33 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting