Object reference not set to an instance of an object.

askardn

Newcomer
Joined
May 24, 2011
Messages
1
can anyone solve this,, more details chek the image

Line 852: CheckBox CBX1 = ((CheckBox)grid_add_contacts_list.Rows[rowindex].FindControl("cbk_edit_cprimary"));
Line 853:
Line 854: CBX1.Checked = true;
Line 855:
Line 856: }


error Line: 854
 

Attachments

It looks as though
C#:
CheckBox CBX1 = ((CheckBox)grid_add_contacts_list.Rows[rowindex].FindControl("cbk_edit_cprimary"));
isn't returning a valid object, are you sure the control has that id and is present in the row?
 
Back
Top