在Gridview1_PageIndexChanging网格上不应重新加载.
问题描述:
我在gridview1的最后一栏中有复选框,当我检查页面索引1的某些复选框时,转到第二个索引以选择更多项目,然后返回第一个索引,我没有得到任何检查框已选中...
.
我不要这个.
如何防止这种情况,
我希望该复选框在返回页面索引时保持选中状态..
i have check boxes in last column of gridview1, when i check some checkBoxes of page index 1, and go to 2nd index to select some more items, and come back on 1 st index, i don''t got any check box selected...
.
i don''t want this.
how to prevent this,
i want that check boxes, remains selected when back to page index..
答
您必须将gridview的autopostback设置为false.
Hi,
You have to set autopostback false for gridview.