gridview中的选定行已在使用后选择或在asp.net中的gridview的下一页 [英] Selected Row in gridview already selected after use or Next page of gridview in asp.net

查看:70
本文介绍了gridview中的选定行已在使用后选择或在asp.net中的gridview的下一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Gridview,当我点击Gridview的选择按钮,选择值并填写所有相应的文本框,但我进入Gridview的第二页的私有索引或 ROW已选择,如果我按删除按钮删除行的值.so 如何取消选择下一页Gridview行,plz帮助我在gridview pageindex上更改

I am using Gridview,when i click in select button of Gridview ,value selected and fill all respective textbox,but i goes second page of Gridview the privious index or ROW already selected ,if i press delete button the value of row deleted.so How can i unselected next page Gridview row, plz help me

推荐答案

event,将gridview的SelectedIndex设置为-1
on your gridview pageindex changing event, set the SelectedIndex of the gridview as -1


转到GridView的PageIndexChanging事件。并将SelectedIndex设置为-1。在PageIndexChanging事件中写下这个:

Go to the PageIndexChanging event of your GridView. And set the SelectedIndex as -1. Write this in PageIndexChanging event:
GridView1.SelectedIndex  = -1;





--Amit



--Amit


这篇关于gridview中的选定行已在使用后选择或在asp.net中的gridview的下一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆