Click here to Skip to main content
14,635,966 members
Rate this:
Please Sign up or sign in to vote.
See more:
i am using checkbox inside listview in wpf application. i try to refer the checkbox control

like this

CheckBox myTextbox = GetTemplateChild("chb_standard") as CheckBox;

here chb_standard is checkbox name inside listview but problem here is it will display

mytextbox as null because of that i getting nullreference exception error.

if anyone have any idea about how to refer help me. i tried many option nothing will work for me thanks in advance
Shahare 10-Sep-13 14:54pm
What is the use of the CheckBox? What are you trying to do? Some source code or sample will help

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100