以下是代码
object obj = (object)table1.DataGrid.SelectedItem;
string strZj = obj.GetType().GetProperty("zj").GetValue(obj, null).ToString();
提示未引用实例,很显然我起的zj标题名不知道转成obj换成什么了,我跟中进去发现有值。但不知道怎么取出来。
继续跟中后找到具体值提示我
(new System.Collections.Generic.Mscorlib_CollectionDebugView<BBTDC.Framework.DataStructure.Column>(((BBTDC.Framework.DataStructure.Row)(obj)).columns)).Items[0]._Value 值 1001001
但我考到代码里提示
错误 1命名空间“System.Collections.Generic”中不存在类型或命名空间名称“Mscorlib_CollectionDebugView”。是否缺少程序集引用? G:\Conventional\04代码编制\WEB系统\BBTDC\BBTDC.Platform\Model\Entity0.xaml.cs 474 64 BBTDC.Platform
错误 2 “BBTDC.Framework.DataStructure.Row.columns”不可访问,因为它受保护级别限制 G:\Conventional\04代码编制\WEB系统\BBTDC\BBTDC.Platform\Model\Entity0.xaml.cs 474 174 BBTDC.Platform
哪位大侠帮帮忙