Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Folks,

I have a days of week combo column on a datagridview, and I want to select multiple values. I'm struggling to find anything useful on Google. The practical angle is a travel ticket that might be valid over a weekend or only during mid week.

If I cant find one I have a workaround where I put '...' in a command column and launch a popup when its clicked, but it runs against the look-and-feel I an creating.


Ger
Posted
Updated 8-Nov-11 18:00pm
v2
Comments
Menon Santosh 9-Nov-11 0:05am    
U Have to look for any custom control :)
Ger Hayden 12-Nov-11 9:48am    
No - this challenge is within the confines of a datagridview

Did I understand you right: you need multiple selection in combo box? (Because multiple selection is grid view is already available.)

Try to use System.Windows.Forms.ListBox instead of combo box. It has selection modes MultiSimple and MultiExtended; use the property SelectionMode.

See:
http://msdn.microsoft.com/en-us/library/system.windows.forms.listbox.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.listbox.selectionmode.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.selectionmode.aspx[^].

—SA
 
Share this answer
 
<b>VISIT BELOW LINK.
</b>
<a href="http://msdn.microsoft.com/en-us/library/aa480727.aspx">http://msdn.microsoft.com/en-us/library/aa480727.aspx</a>[<a href="http://msdn.microsoft.com/en-us/library/aa480727.aspx" target="_blank" title="New Window">^</a>]
 
Share this answer
 
Comments
Ger Hayden 12-Nov-11 9:48am    
This link has promise. Will read it in detail and see if it provides the answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900