asp.net - Dynamic population in gridview -


i have grid view, in have 1 column template field, while other 8 columns dynamically created. template field has checkbox, while trying retrieve checkbox in code-behind file, null.

when columns not dynamically created, checkbox pretty fine , has value in code behind. below code:

<asp:gridview id="gridresultset" runat="server" autogeneratecolumns="false" allowsorting="true"                     onrowcreated="gridresultset_rowcreated" onload="gridresultset_load" cssclass="reportgrid"                     cellpadding="4" onsorting="gridresultset_sorting" onrowdatabound="gridresultset_rowdatabound">                       <columns>                         <asp:templatefield headertext="reclass">                             <itemtemplate>                                 <acesec:checkbox id="chkreclass" cssclass="checkboxliststyle" runat="server" />                             </itemtemplate>                         </asp:templatefield>                      </columns>             <rowstyle cssclass="gridrow" />      <alternatingrowstyle cssclass="gridrow" />   <headerstyle cssclass="gridheader" />   </asp:gridview>  system.web.ui.webcontrols.checkbox chbreclass = gridresultset.rows[i].findcontrol("chkreclass") system.web.ui.webcontrols.checkbox; 

do need check in order access template field while creation of dynamic columns?

any body faced same kind of situation?

pointers highly appreciated.

regards


Comments