带有分页和复选框的datagrid [英] datagrid with paging and checkbox
问题描述
我是asp.net的新手,我是尝试使用datagrid的人.
我的概率是...当我单击标题复选框时,当我转到datagrid的sec页时,第一页中的所有d复选框都被选中.页面复选框也将被选中..我使用了onitemdatabound ..但是当我单击sec页面时看起来像..默认情况下,未选中d标头复选框.
谢谢
i m new to asp.net n i m tryin to work wit datagrid.
my prob is tat...when i click the header checkbox all d checkbox in the first page is selected n when i go to d sec page in datagrid..the checkbox are not selected in the sec page..but i want the sec page checkbox to be selected as well..i used onitemdatabound..but looks like when i click the sec page..by default d header checkbox is unchecked..pls help me wit tis...
thanks
推荐答案
尝试使用此链接 http://www.koolsoft.com /DataGridCheckboxes.aspx [^ ]
Try this link http://www.koolsoft.com/DataGridCheckboxes.aspx[^]
您可以使用
you can use
<asp:gridview xmlns:asp="#unknown">AllowPaging="True|False" />
</asp:gridview>
AllowPaging属性
复选框,请看这篇文章
GridView控件内的复选框
AllowPaging Property
for checkbox take a look of this article
Checkbox inside GridView Control
这篇关于带有分页和复选框的datagrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!