The GetDataRow method returns the following:
- null, if the Tree List data source is a custom collection of objects;
- a System.Data.DataRow object, if the data source is a System.Data.DataTable or System.Data.DataView object. DataRow objects allow you to access and modify rows and row values.
To retrieve objects that correspond to Tree List rows regardless of the data source type, call the GetRow method instead.