本文介绍了对象引用是弹出错误所必需的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MethodLight.FixtureDataView.Rows.Add("TestData");





我收到错误这行代码需要对象引用。此行在添加灯具表格上,数据网格视图在'MethodLight'上



我尝试过:



添加此代码:





I get an error on this line of code that an object reference is required. This line is on form 'Add Fixtures' and the Data Grid View is on 'MethodLight'

What I have tried:

Adding this code:

MethodLight MethodLight = new MethodLight();





但它不起作用:(



But it didn't work :(

推荐答案


这篇关于对象引用是弹出错误所必需的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-17 14:51