65.9K
CodeProject is changing. Read more.
Home

Multiple Column List Box Custom Control

starIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIconemptyStarIcon

1.40/5 (6 votes)

Aug 15, 2005

viewsIcon

41872

downloadIcon

801

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