J
Jay Ruyle
I'm trying to figure out a way to list several items in a listbox and let
the user select any number of items in the listbox. I have tried to code in
the items as bitwise items but all it stores in the database is the top item
in the listbox.
How can I get the listbox to add all the bit values to be stored and also
come out properly when viewed later?
Example:
SQL Table = Valid Phases Lookup
Name Bitwise
Phase-10 1
Phase-20 2
Phase-30 4
Phase-40 8
Phase-60 16
Phase-70 32
SQL Table = Projects
Name Stored Type
ProjectName nvarchar
ValidPhases bigint (using listbox in c# with values
bound to lookup table above)
....Otherstuff...
Other notes:
I do have "MultiExtended" as the Selection Mode.
ValueMode to use the bitwise value.
Just having trouble getting the bitwise values to add up in the program and
send the correct value to the database.
Ive attempted a custom listbox and combo-box. Please help.
Jay
the user select any number of items in the listbox. I have tried to code in
the items as bitwise items but all it stores in the database is the top item
in the listbox.
How can I get the listbox to add all the bit values to be stored and also
come out properly when viewed later?
Example:
SQL Table = Valid Phases Lookup
Name Bitwise
Phase-10 1
Phase-20 2
Phase-30 4
Phase-40 8
Phase-60 16
Phase-70 32
SQL Table = Projects
Name Stored Type
ProjectName nvarchar
ValidPhases bigint (using listbox in c# with values
bound to lookup table above)
....Otherstuff...
Other notes:
I do have "MultiExtended" as the Selection Mode.
ValueMode to use the bitwise value.
Just having trouble getting the bitwise values to add up in the program and
send the correct value to the database.
Ive attempted a custom listbox and combo-box. Please help.
Jay