Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi I have a checkbox column inside gridview and I made my gridview checkbox's checked and unchecked according to certain condition in code behind but in web page I am able to check and uncheck those checkbox's. I know it will not affect to my application but just for restriction purpose.

Enable=False; working but it seems inactive so I don't need this one

Please suggest me how would I do that

Thanks
Prafulla
Posted
Comments
ZurdoDev 31-May-13 7:56am    
Why does Enabled=false not work for you?
Prafulla Sahu 31-May-13 10:35am    
its working fine but it seems like "disble" thats why..
ZurdoDev 31-May-13 10:37am    
I'm confused. Are you saying Enable=false is making it work "disabled" which is not what you want? What do you want?
Prafulla Sahu 7-Jun-13 7:49am    
hey ryan you shouldn't confuse.... do one thing take 2 checkbox and make their Enable property of one checkbox false and another true then you can see what is the difference of both. Which checkbox Enable property is true I just want that type of checkbox but avoiding select option.I hope it will make you clear.
Please accept this answer, if it has helped you in any way.
This will help others to find the answer in one go and you will also be awarded with some points for this action...

Thanks,
Tadit

1 solution

I think you need to prevent the default behaviour of click event using event.preventDefault()[^] method.

Check the Demo - [Demo] Prevent Default Behaviour of CheckBox Click.[^]
 
Share this answer
 

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