| re: C# APP Generate Dynamic SQL Statement from ListBox
Hi, can anyone help me on this problem. It is quiet urgent......
i have two CheckedListBox (CLBa and CLBb) , and i want the user selected CheckedListBox is assign to two dimension array.
Objective:
There is a sql statement (select * from tblname where field1= ' ' OR field2=' '),
i want to allow user to choose the data for filetring,
where
- field1 will read selected item in CLBa
- field2 will read selected item in CLBb
- the sql statement is use for 1 table only
possibility
- single row might have selected data in field1 and field2
- row is not duplicated in the result of select statement
solution
- i plan to assign the selected item in CLBa and CLBb to a two dimensional array
- from the array i read the data and filter
problem
- how to assign the selected in both check box list to an two dimension array?
Thank you
|