Click here to Skip to main content
15,894,740 members
Articles / Web Development / ASP.NET
Article

Multiple Column List Box Custom Control

Rate me:
Please Sign up or sign in to vote.
1.04/5 (13 votes)
14 Aug 2005 41.5K   801   18   3
Multiple Column List Box Custom Control

Sample Image - Multi_Column_List_Box.jpg

Introduction

There have been many customer controls on Drop Down List with multiple columns, I haven't found a List box with Multiple Columns

Using the code

It's very simple to use the control, just need add reference to your project , include control tags on your page

use it as normal datagrid control. apply the datasource and bind it.

//
// <%@ Register TagPrefix="cc1" Namespace="MultiColList" Assembly="MultiColList" %>
//
//
// <cc1:mclistbox id="McList" runat="server" Width="100%"%>

McList.Text will return the value you selected.

This control use a SmartScroll control to keep scroll bar position after Post Back, so you need include StrengthControls.Scrolling dll in your project

History

* 12 Aug, 2005 - Version 1

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Australia Australia
I am a analyst programmer with MCSD letter, honours degree in Information Technology.

I am interesting in coding using VB .NET or C#

Comments and Discussions

 
GeneralThank you for this! Pin
willhawes4-Nov-09 15:03
willhawes4-Nov-09 15:03 
GeneralThis doesn't tell me anything Pin
Colin Angus Mackay11-Jan-07 22:33
Colin Angus Mackay11-Jan-07 22:33 
QuestionBind it to SQL Query Pin
Imparatorvolkan14-Nov-06 8:57
Imparatorvolkan14-Nov-06 8:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.