I wanto check the state of checkbox which is inside the data item template in devexpress grid view when the user click the ok button here is my aspx code for gridviewColumn
<Columns>
<dx:GridViewDataColumn Caption="Data Source" FieldName="dataSrc" VisibleIndex="1"></dx:GridViewDataColumn>
<dx:GridViewDataColumn Caption="Download" FieldName="dwnloadConfig" VisibleIndex="2" Width="70px" >
<DataItemTemplate>
<dx:ASPxCheckBox ID="cbDwnloadConfig" ClientInstanceName="cbDwnloadConfig
" runat="server" >
</dx:ASPxCheckBox>
</DataItemTemplate>
</Columns>
Now when ok button is clicked i want to check the state of cbDwnloadConfig on server side
I used following code on cs file to access the dataitem template control but the checked state is always false.
ASPxCheckBox cbDwnload = gvDataSrc.FindRowCellTemplateControl(rwIndex[i], gvDataSrc.Columns["dwnloadConfig"] as GridViewDataColumn, "cbDwnloadConfig") as ASPxCheckBox;
So what is the proper way to check the state of checkbox which is inside the dataitemtemplate?