Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: filtering of comboboxes Pin
bdeklerk18-Jul-12 22:21
bdeklerk18-Jul-12 22:21 
GeneralRe: filtering of comboboxes Pin
bdeklerk18-Jul-12 22:22
bdeklerk18-Jul-12 22:22 
GeneralRe: filtering of comboboxes Pin
Wayne Gaylard18-Jul-12 22:31
professionalWayne Gaylard18-Jul-12 22:31 
Questionbluetooth file transfer b/w to windows mobile Pin
syedaliaizazuddin18-Jul-12 19:56
syedaliaizazuddin18-Jul-12 19:56 
GeneralRe: bluetooth file transfer b/w to windows mobile Pin
Peter_in_278018-Jul-12 20:24
professionalPeter_in_278018-Jul-12 20:24 
GeneralRe: bluetooth file transfer b/w to windows mobile Pin
syedaliaizazuddin18-Jul-12 23:34
syedaliaizazuddin18-Jul-12 23:34 
QuestionStrange List<string[]> behaviour... Pin
OlofBakker18-Jul-12 14:58
OlofBakker18-Jul-12 14:58 
AnswerRe: Strange List behaviour... Pin
ignrod18-Jul-12 15:25
ignrod18-Jul-12 15:25 
GeneralRe: Strange List behaviour... Pin
OlofBakker19-Jul-12 0:14
OlofBakker19-Jul-12 0:14 
QuestionProgrammable Rotators / Pivots - Do they exist? Pin
Member 850513118-Jul-12 9:40
Member 850513118-Jul-12 9:40 
AnswerRe: Programmable Rotators / Pivots - Do they exist? Pin
Richard MacCutchan18-Jul-12 22:03
mveRichard MacCutchan18-Jul-12 22:03 
Generalcoloring label with timer Pin
sisadosizdah18-Jul-12 8:51
sisadosizdah18-Jul-12 8:51 
GeneralRe: coloring label with timer Pin
Dave Kreskowiak18-Jul-12 8:54
mveDave Kreskowiak18-Jul-12 8:54 
GeneralRe: coloring label with timer Pin
DaveyM6918-Jul-12 8:59
professionalDaveyM6918-Jul-12 8:59 

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.