Important alert: (current site time 7/16/2013 10:04:39 AM EDT)
 

winzip icon

MultiColumn MZKComboBox ** Updated**

Email
Submitted on: 5/2/2006 2:18:35 AM
By: Syed Muhammad Fahad  
Level: Advanced
User Rating: By 21 Users
Compatibility: C#
Views: 8185
author picture
(About the author)
 
     Getting bored of the Windows ComboBox ??? Have scenarios in which you want to show multiple columns[Virtually Unlimited !!!] in the DropDown. Want the Columns to have Headers to specify their meanings ??? Want the user to dynamically switch the Look and feel of the Control and the Columns to de displayed ??? Then this control is for you. It's written in C# from scratch by extending the Windows ComboBox. I Started this project when I was in need of displaying extra information to the user without spending extra number of controls. This ComboBox is inspired from MTG's Flat MultiColumn comboBox[url to code included in the Inspirations Design Time Menu Command]. Please give your 2 minutes to vote it. I know your time is very very precious but think of my hours of Effort to make this control. I had taken very sharp eye to make it as much Object Oriented as possible. The coding conventions are consistent throughout the project plus the comments and the updates are also mentioned in uniform way. You will find a lot from this project other than the Control itself. Please Vote!

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 6 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
4/16/2006 9:12:49 AMSana Khan

I liked the code because of the way it is coded. Good OOP utilization. Just 5 from me.
(If this comment was disrespectful, please report it.)

 
4/20/2006 10:17:08 AMNate

I've tried 5 different .NET multicolumn comboboxes and this is the best one I've found so far. The best thing about it is that the developer is continuing to work on it to make it even better. He is very open to help, suggestions and feedback so please if you download this code take the time to vote and contact him to tell him how you like the control. I did and I have been rewarded with an open dialogue on how to improve the product for my application. Great work Syed!

P.S. If you encounter a bug where the list populates but is blank, try changing the following code in the Designer Generated Code
FROM
MzkColumnCollection1.CurrentColumn = Nothing
Me.comboTest.Columns = MzkColumnCollection1
TO
Me.comboTest.DataSource = Nothing
Me.comboTest.DisplayColumnNames = Nothing

That did the trick for me!
Nate
(If this comment was disrespectful, please report it.)

 
4/21/2006 1:36:01 AMSyed Muhammad Fahad

Thanks for having a good feed-back. Thank you very much. I will make things you requested available soon :)
(If this comment was disrespectful, please report it.)

 
4/28/2006 5:12:31 PMEdward Brown

Very elegant solution. Best multi-column
combo I have tried so far!
(If this comment was disrespectful, please report it.)

 
4/29/2006 4:13:21 AMSyed Muhammad Fahad

Thanks Edward ... I cant understand why people are not voting or atleast posting their comments for this code ??? I can see 807 hits to this Project but there are not even 10 comments of appreciation or criticism ...
(If this comment was disrespectful, please report it.)

 
4/30/2006 9:54:15 AMjava2dotnet

what's the effort to convert it in Java ?
(If this comment was disrespectful, please report it.)

 
5/2/2006 7:57:10 AMSyed Muhammad Fahad

Well! I am not planning to convert it to JAVA atleast myself.
(If this comment was disrespectful, please report it.)

 
7/19/2006 6:10:05 AMclody

nice job. well done! (you got my 5)
it is working well under NET 2.0 ?
(If this comment was disrespectful, please report it.)

 
1/11/2007 2:48:37 PMPuiu

Hi, first of all, pls excuse my english! I try to use this combo in a project but, I found a problem (for me!): In list is for example 5 items that have in first column the same value.If I select row 3 when the control lose focus, the selected item is automaticaly changed to first. How can I avoid this behavior? Thank you!
(If this comment was disrespectful, please report it.)

 
2/18/2009 4:36:17 PMGilberth

Hello everybody, I guess it's too late to ask, but I'm hard on something like changing the color to the title of the columns, that because I think those colors are very clear and do not clearly understand what you say, I hope some help about this, thanks.
(If this comment was disrespectful, please report it.)

 
8/16/2011 8:34:02 PMIdealsoft

That you very very much. this is a great dropdown multicolumn. i have two suggestions though,
after i select an item from the dropdownlist with mouse click a messagebox show -1, please make it show the column value of the selected item in the messagebox. second suggestion is, as i type in the box it should dropdown the list automatically and select the item i was typing.
(If this comment was disrespectful, please report it.)

 
12/10/2011 2:43:08 AMnaweez

nice control but length code
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.