Click here to Skip to main content
15,894,410 members
Home / Discussions / C#
   

C#

 
GeneralMessage Removed Pin
19-Jul-12 7:57
professionalN_tro_P19-Jul-12 7:57 
AnswerRe: Random Selection Pin
Luc Pattyn19-Jul-12 8:02
sitebuilderLuc Pattyn19-Jul-12 8:02 
GeneralRe: Random Selection Pin
ASPnoob19-Jul-12 7:46
ASPnoob19-Jul-12 7:46 
GeneralRe: Random Selection Pin
Dave Kreskowiak19-Jul-12 7:59
mveDave Kreskowiak19-Jul-12 7:59 
AnswerRe: Random Selection Pin
Luc Pattyn19-Jul-12 7:59
sitebuilderLuc Pattyn19-Jul-12 7:59 
GeneralMessage Closed Pin
19-Jul-12 8:14
WebMaster19-Jul-12 8:14 
GeneralRe: Random Selection Pin
ASPnoob19-Jul-12 8:56
ASPnoob19-Jul-12 8:56 
Questionhow to set the aspx text box value in console app Pin
Member 916988718-Jul-12 23:21
Member 916988718-Jul-12 23:21 
AnswerRe: how to set the aspx text box value in console app Pin
Karthik Harve18-Jul-12 23:44
professionalKarthik Harve18-Jul-12 23:44 
QuestionC# Installer Custom Actions Pin
glennPattonWork318-Jul-12 22:32
professionalglennPattonWork318-Jul-12 22:32 
AnswerRe: C# Installer Custom Actions Pin
Pete O'Hanlon18-Jul-12 22:41
mvePete O'Hanlon18-Jul-12 22:41 
GeneralRe: C# Installer Custom Actions Pin
glennPattonWork318-Jul-12 23:10
professionalglennPattonWork318-Jul-12 23:10 
GeneralRe: C# Installer Custom Actions Pin
Pete O'Hanlon18-Jul-12 23:19
mvePete O'Hanlon18-Jul-12 23:19 
GeneralRe: C# Installer Custom Actions Pin
glennPattonWork318-Jul-12 23:30
professionalglennPattonWork318-Jul-12 23:30 
GeneralRe: C# Installer Custom Actions Pin
Pete O'Hanlon18-Jul-12 23:31
mvePete O'Hanlon18-Jul-12 23:31 
GeneralRe: C# Installer Custom Actions Pin
glennPattonWork318-Jul-12 23:36
professionalglennPattonWork318-Jul-12 23:36 
GeneralRe: C# Installer Custom Actions Pin
Pete O'Hanlon18-Jul-12 23:48
mvePete O'Hanlon18-Jul-12 23:48 
Questionweb app automated Pin
Member 916988718-Jul-12 22:04
Member 916988718-Jul-12 22:04 
Generalfiltering of comboboxes SOLVED Pin
bdeklerk18-Jul-12 21:24
bdeklerk18-Jul-12 21:24 
AnswerRe: filtering of comboboxes Pin
Pete O'Hanlon18-Jul-12 21:34
mvePete O'Hanlon18-Jul-12 21:34 
GeneralRe: filtering of comboboxes Pin
bdeklerk18-Jul-12 21:37
bdeklerk18-Jul-12 21:37 
GeneralRe: filtering of comboboxes Pin
Pete O'Hanlon18-Jul-12 22:07
mvePete O'Hanlon18-Jul-12 22:07 
Ah good. For a moment you had me worried. You'd be surprised how many times we see people wanting insane amounts of data in there. As you haven't said which technology you are using, I am going to assume you want Windows Forms and would look to implement this using LINQ. Basically, you capture the selection changed in the first combobox and use that to change your DataSource on the second one using a query like this (for this example I'm assuming you've prepopulated an array called filterValues with your values from 0 to 200000):
C#
secondComboBox.DataSource = (from p in filterValues
where p <= firstComboValue
select p).ToList();

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

AnswerRe: filtering of comboboxes Pin
Wayne Gaylard18-Jul-12 21:35
professionalWayne Gaylard18-Jul-12 21:35 
GeneralRe: filtering of comboboxes Pin
bdeklerk18-Jul-12 21:42
bdeklerk18-Jul-12 21:42 
GeneralRe: filtering of comboboxes Pin
Wayne Gaylard18-Jul-12 21:47
professionalWayne Gaylard18-Jul-12 21:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.