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
570
Add CheckBox in WebGrid's header
posted

How can I put CheckBox in WebGrid's header, in order to realize check all or check no?

Parents
  • 7694
    posted

    Hello,


    You can use the template columns and put the check  box into header and cell Please take a look at the sample code below:


    <igtbl:TemplatedColumn>
                                <CellTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </CellTemplate>
                                <HeaderTemplate>
                                    <asp:CheckBox ID="CheckBox2" runat="server" />
                                </HeaderTemplate>
                            </igtbl:TemplatedColumn>

    Hope this helps.

Reply Children