Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi All,

I have a column Status in a Table Abc and it stores 0 and 1.

Now the thing is this I want to display checked if status is 1 and un-checked if status is 0.
Please help me .I want to implement it in gridview either by using Radiobutton or CheckBox.


Thanking You
Mohd Wasif
Posted
Updated 2-Jun-11 21:57pm
v2

Bind the "Checked" property of the checkbox. Go through this link: http://forums.asp.net/p/1499377/3543444.aspx[^]
 
Share this answer
 
you can use bit datatype in sqlserver 2005 it will store true or false value . For passing value to that field you only have to pass false(or 0) for false and true(or 1) for true. and then you can show it in your gridview.
 
Share this answer
 
v3

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