GridView翻页时保持CheckBox选择状态
2010-03-10 17:42
489 查看
//定义翻页bool
1private bool changed=false;//定义保存选择项主键集合属性
1protected List<string> SelectedItems
2private void GetSelectedItem()
2protected void gvwResult_DataBinding(object sender, EventArgs e)
2protected void gvwResult_RowDataBound(object sender, GridViewRowEventArgs e)
2protected void btnConfirm_Click(object sender, EventArgs e)
2 {
3 if(!changed)
4 GetSelectedItem();
5 foreach (string id in (List<string>)this.SelectedItems)
6 {
7 //..
8 }
9 }
try {
GS_googleAddAdSenseService("ca-pub-4210569241504288");
GS_googleEnableAllServices();
}
catch (e) { }
try {
GA_googleAddSlot("ca-pub-4210569241504288", "cnblogs_blogpost_body");
GA_googleAddSlot("ca-pub-4210569241504288", "cnblogs_commentbox_up");
GA_googleAddSlot("ca-pub-4210569241504288", "cnblogs_blogpost_bottom");
GA_googleAddSlot("ca-pub-4210569241504288", "cnblogs_blogpost_bottom1");
}
catch (e) { }
try {
GA_googleFetchAds();
} catch (e) { }
var blog_ad_has_shown = false;
1private bool changed=false;//定义保存选择项主键集合属性
1protected List<string> SelectedItems
2private void GetSelectedItem()
2protected void gvwResult_DataBinding(object sender, EventArgs e)
2protected void gvwResult_RowDataBound(object sender, GridViewRowEventArgs e)
2protected void btnConfirm_Click(object sender, EventArgs e)
2 {
3 if(!changed)
4 GetSelectedItem();
5 foreach (string id in (List<string>)this.SelectedItems)
6 {
7 //..
8 }
9 }
try {
GS_googleAddAdSenseService("ca-pub-4210569241504288");
GS_googleEnableAllServices();
}
catch (e) { }
try {
GA_googleAddSlot("ca-pub-4210569241504288", "cnblogs_blogpost_body");
GA_googleAddSlot("ca-pub-4210569241504288", "cnblogs_commentbox_up");
GA_googleAddSlot("ca-pub-4210569241504288", "cnblogs_blogpost_bottom");
GA_googleAddSlot("ca-pub-4210569241504288", "cnblogs_blogpost_bottom1");
}
catch (e) { }
try {
GA_googleFetchAds();
} catch (e) { }
var blog_ad_has_shown = false;
相关文章推荐
- [转]GridView翻页时保持CheckBox选择状态
- GridView翻页时保持CheckBox选择状态
- GridView翻页时保持CheckBox选择状态
- GridView翻页时保持CheckBox选择状态
- GridView翻页时保持CheckBox选择状态
- GridView 如何在翻页时保持CheckBox的选择
- GridView 翻页后保持checkbox选中状态
- GridView 如何在翻页时保持CheckBox的选择
- GridView 如何在翻页时保持CheckBox的选择
- Android ListView 中加入CheckBox/RadioButton 选择状态保持、全选、反选实现
- EasyUI datagrid实现翻页保持checkbox状态
- GridView 在换页时保持CheckBox的选择
- 关于GridView翻页checkBox状态保存的问题
- ASP.NET:GridView翻页时保存模板列内的RadioButtonList选择状态
- GridView中添加一个CheckBox列,翻页后保存选中状态
- 如何datagrid分页保持每页先前选择的checkbox的状态?
- 关于GridView翻页checkBox状态保存的问题 (session)
- SpringMVC与JS一起实现checkbox翻页后保持已选中状态
- 如何datagrid分页保持每页先前选择的checkbox的状态?
- 工作小结(十七)-GridView 翻页后保存CheckBox列的选中状态