Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4555
How to bind a checkbox in a templated column
posted

Use the DataBinder method. The code may look similar to:

         <ig:TemplateDataField Key="CheckBox">

                        <ItemTemplate>

                            <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="true" OnCheckedChanged="Checkbox1_CheckChanged" checked='<%# DataBinder.Eval(CType(Container, Infragistics.Web.UI.TemplateContainer).DataItem, "CheckBox") %>'/>

                        </ItemTemplate>

                        <Header Text="CheckBox" />

                    </ig:TemplateDataField>