I try to pass the value to DataRow type variable from custom collection like the codes bellow:
GridHitInfo downHitInfo = null;
DataRow row = gridView3.GetDataRow(downHitInfo.RowHandle);
But as I know that if the view's data source is a custom collection of objects, the GetDataRow
method returns null
(Nothing in Visual Basic). If the view's data is supplied by the System.Data.DataTable
or System.Data.DataView object
, the System.Data.DataRow object
representing a specific row is returned."
And the XPCollection is "a custom collection of objects".
Is there any way that I could do to get the value from
gridView3.GetDataRow(downHitInfo.RowHandle)?
Is there any converter or something needed?