本代码:GvSrchResults.SelectedRow.Cells [11]。文本,不适合我获取特定的单元格文本 [英] This Code: GvSrchResults.SelectedRow.Cells[11].Text , not working for me to get that particular cell text

查看:75
本文介绍了本代码:GvSrchResults.SelectedRow.Cells [11]。文本,不适合我获取特定的单元格文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





此代码:GvSrchResults.SelectedRow.Cells [11]。文字,



在gridview中选择索引改为不适合我,显示空字符串值()。



如何获取特定单元格文本的文本







谢谢。

Hi,

This Code: GvSrchResults.SelectedRow.Cells[11].Text,

in gridview selected index changed not working for me, showing empty string value("").

How to get the text of the particular cell text



Thanks.

推荐答案

我们可以' t帮助你:它将在很大程度上依赖于你的代码和你的数据 - 我们都无法访问它们。



所以从调试器开始,并查看语句的实际元素并找出它包含的内容。那么至少你会得到一些真实的信息。你现在所拥有的只是这是空的,不知道它实际上是在看什么,以及它是数据,错误的列,错误的网格视图,错误的行,还是它实际上应该是空的!



开始调试的时间 - 我们不能为你做到这一点!
We can't help you with this: it will depend far too much on your code and your data - neither one of which we have access to.

So start with the debugger, and look at the actual elements of the statement and find out what it contains. Then at least you will have some real information to work with. All you have at the moment is "this is empty", with no idea of what it is actually looking at, and whether it's the data, the wrong column, the wrong grid view, the wrong row, or "it should actually be empty"!

Time to start debugging - we can't do that for you!


这篇关于本代码:GvSrchResults.SelectedRow.Cells [11]。文本,不适合我获取特定的单元格文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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