ListBindingHelper.GetListItemType Method (Object, String)
Returns the data type of the items in the specified data source.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The data source to examine for items.
The optional name of the property on the data source that is to be used as the data member. This can be null.
This version of themethod is used to determine the type of items used in complex or simple data-binding schemes. This static method may be useful in determining whether a proposed data-binding scheme is appropriate before attempting it.
If dataSource is null, the property descriptors cannot be found for the list items of the specified data member, or the property descriptor for the list item is an ICustomTypeDescriptor, then this method returns the type of the Object class.
Available since 2.0