我尝试从自定义集合中将值传递到DataRow类型变量,代码如下:
但是我知道如果视图的数据源是自定义对象集合,
需要使用转换器或其他工具吗?
GridHitInfo downHitInfo = null;
DataRow row = gridView3.GetDataRow(downHitInfo.RowHandle);
但是我知道如果视图的数据源是自定义对象集合,
GetDataRow
方法会返回null
(在Visual Basic中为Nothing
)。如果视图的数据由System.Data.DataTable
或System.Data.DataView object
提供,则返回代表特定行的System.Data.DataRow object
。
XPCollection是“自定义对象集合”。
是否有任何方法可以获取值?
gridView3.GetDataRow(downHitInfo.RowHandle)?
需要使用转换器或其他工具吗?