How do I iterate through a typed view and get the field names? In a Collection class I can do this dim obj as new somecollection for i as integer = 0 to obj.fields.count -1 dim s as obj.fields(i).name do something next
Thanks
A TypedView has DataColumns, not EntityFields. So, you should do that this way:
Dim theView As New YourViewTypedView() For Each (c As System.Data.DataColumn In theView.Columns) Dim s = c.ColumnName ' Do something... Next
Thanks! I also found the "GetFields()' Collection.