Version

GetDataRecordFromDataItem Method (ExpandableFieldRecordCollection)

Returns the DataRecord that represents the list object from the data source
Syntax
'Declaration
 
Public Function GetDataRecordFromDataItem( _
   ByVal dataItem As Object, _
   ByVal recursive As Boolean _
) As DataRecord
public DataRecord GetDataRecordFromDataItem( 
   object dataItem,
   bool recursive
)

Parameters

dataItem
The object from the data source
recursive
If true will check all descendant records as well.

Return Value

The associated DataRecord or null
Remarks
Infragistics.Windows.DataPresenter this may be an expensive operation depending on the size and structure of the data. The logic first checks all of the DataRecords in this collection and if a match is not found then checks all of the descendant records.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also