Tag: 批量删除预览模式: 普通 | 列表

ASPxGridView 批量删除或者批量更改




Step1.在标题栏上加checkbox,实出全选功能

点击AspxGridView的columns,你可以直接选择增加一行Command Column或者随便选择一种然后点击Change To Commadn Column;默认的ShowSelectCheckBOx是true,



<dx:GridViewCommandColumn Caption="选择" ShowSelectCheckbox="True" VisibleIndex="0" Width="30px">
                        <ClearFilterButton Visible="True">
                        </ClearFilterButton>
                        <HeaderTemplate>
    <dx:ASPxCheckBox ID="ckSelectAll" runat="server" ClientSideEvents-CheckedChanged="function(s,e){ctl00_ContentPlaceHolder1_gdvList.SelectAllRowsOnPage(s.GetChecked());}">
                            </dx:ASPxCheckBox>
                        </HeaderTemplate>

查看更多...

Tags: ASPxGridView 批量删除

分类:编程技术 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 4075