Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Check Box in a Combo Box
 

Check Box in a Combo Box

Hi,
Iam working on a window application using .NET framework 2.0.

I want a check box + some text in a combobox.


User can select multiple items in combo box by using the check box.


My requirement is : I have a report page. User selects some data
and click on 'Show Report'. Iam showing (I must show) the report also
in the same page. When user selects some other data, and click on 'Show
Report' button new data will be populated.


On this page I have an "Items" Combo box. User may select more than one
Item. Since multi selection property is not there for combo box, Iam
forced to go for ListBox. But Listbox is occupying more space and the
look is bad.


I have seen a CheckedComboBox article here:
http://www.codeproject.com/combobox/checkcombo.asp?df=100&forumid=114...


Its in VC++ I think. I need the same kind of functionality in .NET.


I hope its possible. But dont know how to start with it.


I tried creating a class that is inherited from ComboBox. The class
contains a CheckBox, ItemText Properties. But whats next? Iam unable to
proceed. Could you please help.............


Any ideas or code snippet.......... Please...............


Regards,
Bharathi Kumar.


Bharati Kumars  Thursday, June 08, 2006 12:21 PM

I think I should go for a third party control to do this.

I dont think there is a way to do this in .NET.

Regards,

Bharathi Kumar

Bharati Kumars  Friday, June 23, 2006 8:08 AM
Hi Bharti
I'm facing similar problem. If u have found any answer to this problem please post it here please.
Regards
Green Beret
Green Beret  Friday, June 30, 2006 5:21 PM

Hello Bharati,

I faced the same problem here. I have to develope same type of control for my web-based application.

If u got some idea how to proceed for that then please let me know.

Thanks,

Chinmaya P.

cpradhan  Tuesday, July 04, 2006 11:39 AM
hi

Have u find any solution to this problem , because i m also facing the same problem
parag medsinge  Monday, May 07, 2007 6:33 AM

please go through the following link,

http://www.codeproject.com/cs/miscctrl/ImageComboBoxControl.asp

It will gives you the idea.

This link is for ImageComboBox.

Maheswari  Monday, May 07, 2007 9:23 AM

You can use google to search for other answers

Custom Search

More Threads

• Error on filling empty field datatable using ODBC.DataAdapter?
• DataGridView combobox error
• How to write a datatable to an xml file
• Update Windows Datagrid
• Creating data table with rows based on the number of loop traversings
• HasChanges always return true, when check for unsaved data
• Combo Box Problem with String Display Member and Number Value Member
• databind to a treeview control - Need help
• Simple Events on ButtonColumn type on DataGrid
• Another 2 Questions Please