How to get the item's data type in an bound Bindingsource that actually is empty?
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
I have a bindingsource bound to an entity. When the bindingsource has at least one item , I can get the item's data type with :
MyBindingSource.Current.GetType
But how can I do in the case when bindingsource has no items ? I try this :
MyBindingSource.GetItemProperties(Nothing)(0).ComponentType
But doesn't work. Thank you !