选择时的GridView错误:未将对象引用设置为对象的实例 [英] GridView Error on Select: Object reference not set to an instance of an object

查看:84
本文介绍了选择时的GridView错误:未将对象引用设置为对象的实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在gridview上的选择选项有问题,并且会把我的头发拉出来因为它根本不起作用。

这是Grid视图代码:我想在用户点击选择时获取所选行

I have a problem with the select option at the gridview and gonna pull my hair out cause it doesn''t work at all.
Here is the Grid view code: I want to get the selected row when the user click "Select"

展开 | 选择 | Wrap | 行号

推荐答案

您是否可以发布您收到的服务器错误?错误应该告诉你什么对象是null。


Nathan
Could you post the server error you are receiving? The error should tell you what object is null.

Nathan


这是错误:


对象引用未设置为对象的实例


此外我试图捕获错误但捕获得到Nothing:_(
This is the error :

Object reference not set to an instance of an object

Also i tried to catch the error but the catch got Nothing :_(


你设置了断点并逐步执行代码?
Did you set breakpoints and step through your code?


这篇关于选择时的GridView错误:未将对象引用设置为对象的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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