Click here to Skip to main content
15,886,786 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello frnds,
I need to save checkbox greed values to table

The grid like,

A B C D

X 1 0 1 1

Y 0 1 1 0

Z 0 1 0 0

Save

where 1 is selected checkbox and 0 is unselected

I want to know what structure will be efficient for insert the values

Thanks in Advance
Posted

1 solution

Boolean DataType will be the best.

If checked, store true, else store false.
 
Share this answer
 
Comments
ExpertITM 20-Nov-13 7:49am    
My question is that which will columns in table?
As per the structure, the table should look the same.

5 Columns....

-> 1st column to save X, Y and Z.
-> 2nd, 3rd, 4th and 5th for the CheckBoxes.
ExpertITM 20-Nov-13 8:19am    
In my scenario it is for particular object not a global or single object...It add more objects and ther rows will increasing multiply by three basis it will be more complax
Thanks
I don't get you. Can you explain again with examples?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900