INTELLIGENT WORK FORUMS FOR COMPUTER PROFESSIONALS
Come Join Us!
- Talk With Other Members
- Be Notified Of Responses
To Your Posts
- Keyword Search
- Turn Off Ad Banners
- One-Click Access To Your
Favorite Forums
- Automated Signatures
On Your Posts
- Best Of All, It's Free!
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.
Partner With Us!
"Best Of Breed" Forums Add Stickiness To Your Site

(Download This Button Today!)
Member Feedback
"...Keep up the good work - excellent site - i'd been looking for something like this for ages !..."
Geography
Where in the world do Tek-Tips members come from?
|
Visual Basic(Microsoft) -VB.NET 2002-2008 FAQ
|
Controls
|
How to implement a MultiColumn ComboBox
Posted: 27 May 05 (Edited 29 May 05)
|
Here is a link to a MultiColumn ComboBox from The Code Project. It is an excellent control and source code is included. I am using it for one of my projects.
There is an article describing the code and also a message board pertaining to the code at the very end of the page.
http://www.codeproject.com/vb/net/MultiColumnFlatCombo.asp
You have to be a member to download code but all that is required is an email address and password.
Once you have installed it, while in the IDE, click on Tools, Add/Remove ToolBox items and then browse to the dll file and select it. The control will show up on the components area and can be drug onto a form design surface like any other combobox, textbox, etc.
Here are a couple gotchas I encountered:
1) If you are going to define SourceDataTable in code then set the Loading property to ComboboxItems at design time and then change it in your code when you set the SourceDataTable property.
2) You can use the standard combobox DataSource property for Tables and then you can use ValueMember and DisplayMember as you normally would. HOWEVER, if you are defining them in code, you MUST set up the SourceDataTable property first and THEN the DataSource, otherwise you will get an error.
3). It does not currently support filtering by using a DataView with a RowFilter. It will work, but the drop down portion will not draw properly.
|
Back to Visual Basic(Microsoft) -VB.NET 2002-2008 FAQ Index
Back to Visual Basic(Microsoft) -VB.NET 2002-2008 Forum
My FAQ Archive
Email This FAQ To A Friend |
|
 |
|