Click here to Skip to main content
15,881,600 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataBindingComplete on ComboBox? Pin
Dewald19-Jan-11 3:47
Dewald19-Jan-11 3:47 
GeneralRe: DataBindingComplete on ComboBox? Pin
ToddHileHoffer19-Jan-11 4:38
ToddHileHoffer19-Jan-11 4:38 
AnswerRe: DataBindingComplete on ComboBox? Pin
_Erik_19-Jan-11 3:28
_Erik_19-Jan-11 3:28 
GeneralRe: DataBindingComplete on ComboBox? Pin
Dewald19-Jan-11 4:00
Dewald19-Jan-11 4:00 
GeneralRe: DataBindingComplete on ComboBox? Pin
_Erik_19-Jan-11 5:58
_Erik_19-Jan-11 5:58 
AnswerRe: DataBindingComplete on ComboBox? Pin
MumbleB19-Jan-11 6:24
MumbleB19-Jan-11 6:24 
GeneralRe: DataBindingComplete on ComboBox? Pin
Dewald19-Jan-11 20:40
Dewald19-Jan-11 20:40 
Questionhow should i word this... and better...how should i do it? Pin
jwalker34318-Jan-11 17:01
jwalker34318-Jan-11 17:01 
ok,

so here is what i am trying to accomplish, and i've had some "OK" ideas, but none seem to fit the bill exactly...

Program Logic:
i have a file, that will be read and parsed into a datatable
(this is at runtime, columns are unknown & generated as the file as parsed... the number of columns can change..)

then in my application, a certain set of criteria will be applied to that file, if col1 = "asdf", if col2 = "blue"

if all the conditions are met, the file is moved to dir A, if the conditions are not met, the file is moved to dir B.




Problem:
the problem comes when the criteria are applied, basically i want the end user to be able to create their own criteria for the file, the end user will not know SQL so i was thinking some kind of graphical representation of the WHERE clause....

there are a couple of problems i've ran into:

how would the user specify AND/OR to multiple conditions: (they can have infinite #)
(graphically represented:
IF col1 = "BLUE" AND
IF col2 = "Green" OR
IF col3 = "yellow"

could render 2 sets SQL Where clauses:
1. WHERE ((col1='blue' AND col2='green') OR col3='yellow')
2. WHERE (col1='blue' AND (col2='green' OR col3='yellow')




my solution for this problem was to setup AND/OR condition groups:
Graphically represented:
IF all of the following are true
(
     col1='blue'
     col2='green'
)
OR
IF all of the following are true
(
     col3='yellow'
)



this is easy to represent graphically, but i can't find a good solution for storing it long term in the database...
i'd rather not have to write an entire application to generate/parse SQL into this format
does anyone have any ideas? / are the some code snippets available that do something similar?
AnswerRe: how should i word this... and better...how should i do it? Pin
PIEBALDconsult18-Jan-11 18:19
mvePIEBALDconsult18-Jan-11 18:19 
GeneralRe: how should i word this... and better...how should i do it? Pin
jwalker34319-Jan-11 1:59
jwalker34319-Jan-11 1:59 
AnswerRe: how should i word this... and better...how should i do it? Pin
#realJSOP18-Jan-11 23:47
mve#realJSOP18-Jan-11 23:47 
GeneralRe: how should i word this... and better...how should i do it? Pin
jwalker34319-Jan-11 2:05
jwalker34319-Jan-11 2:05 
GeneralRe: how should i word this... and better...how should i do it? Pin
#realJSOP19-Jan-11 2:10
mve#realJSOP19-Jan-11 2:10 
GeneralRe: how should i word this... and better...how should i do it? Pin
DaveyM6919-Jan-11 2:48
professionalDaveyM6919-Jan-11 2:48 
GeneralRe: how should i word this... and better...how should i do it? Pin
#realJSOP19-Jan-11 2:52
mve#realJSOP19-Jan-11 2:52 
GeneralRe: how should i word this... and better...how should i do it? Pin
jwalker34319-Jan-11 16:37
jwalker34319-Jan-11 16:37 
QuestionHow to pin List<byte[]> to unmanaged byte** Pin
Chesnokov Yuriy18-Jan-11 2:09
professionalChesnokov Yuriy18-Jan-11 2:09 
AnswerRe: How to pin List<byte[]> to unmanaged byte** Pin
Ravi Sant18-Jan-11 2:26
Ravi Sant18-Jan-11 2:26 
AnswerRe: How to pin List to unmanaged byte** Pin
Chesnokov Yuriy18-Jan-11 2:35
professionalChesnokov Yuriy18-Jan-11 2:35 
AnswerRe: How to pin List<byte[]> to unmanaged byte** Pin
_Erik_18-Jan-11 2:37
_Erik_18-Jan-11 2:37 
GeneralRe: How to pin List to unmanaged byte** Pin
Chesnokov Yuriy18-Jan-11 2:48
professionalChesnokov Yuriy18-Jan-11 2:48 
GeneralRe: How to pin List to unmanaged byte** Pin
DaveyM6918-Jan-11 2:57
professionalDaveyM6918-Jan-11 2:57 
QuestionRe: How to pin List to unmanaged byte** Pin
Chesnokov Yuriy18-Jan-11 3:03
professionalChesnokov Yuriy18-Jan-11 3:03 
GeneralRe: How to pin List to unmanaged byte** Pin
_Erik_18-Jan-11 3:01
_Erik_18-Jan-11 3:01 
AnswerRe: How to pin List to unmanaged byte** Pin
Chesnokov Yuriy18-Jan-11 3:06
professionalChesnokov Yuriy18-Jan-11 3:06 

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.