帮助GridView回发(asp.net c#web app) [英] Help with GridView postback (asp.net c# web app)

查看:80
本文介绍了帮助GridView回发(asp.net c#web app)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我是gridviews的新手,所以任何帮助都会非常感激。这是我的问题: -


我有一个带有GridView和按钮的表单。

我的gridview绑定到一个集合(12000个项目)(PageSize = 200)它有4列:


1st Col =

Hi,

I am new to gridviews, so any help would be most appreciated. Here is my problem:-

I have a form with a GridView and a button.
My gridview is bound to a collection (12000 items) (PageSize = 200) and it has 4 columns:

1st Col =

展开 | 选择 | 换行 | 行号

推荐答案

您在哪个事件中拥有您发布的代码?是在按钮的click_event还是其他地方?


Nathan
In which event do you have the code that you posted? Is it in the click_event of the button or somewhere else?

Nathan


是的 - 它出现在我所在按钮的点击事件中试图遍历gridview
Yes - it is in the click event of the button where I am trying to loop through the gridview



是的 - 它位于按钮的click事件中,我试图遍历gridview
Yes - it is in the click event of the button where I am trying to loop through the gridview



我想我有点困惑的部分是当你说按钮点击事件中的代码执行后你的gridview为空时。用户是从空中选择项目的gridview还是您正在讨论的另一个gridview?


Nathan

I guess the part that I am a bit confused on is when you say that your gridview is empty after the code in your button click event executes. Is the gridview that the user selected the items from empty or is this another gridview that you are talking about?

Nathan


这篇关于帮助GridView回发(asp.net c#web app)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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