Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dataview
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Miscellaneous
Thread ID:
00666123
Message ID:
00666139
Views:
15
Remove the parentheses from the third line. VB .NET thinks you want an array of DataViews instead of only one:

Dim dtTable As DataTable
dtTable = pobjDS.Tables("TestResults")
Dim dvTest As DataView
dvTest = New DataView(dtTable)


>hello all, i am getting an error when trying to create a dataview and I can't figure this out. The error is :
>Value of type System.Data.DataView cannot be converted to a 1 - dimensional array of System.Data.DataView
>
>Here is the code. Thanks for the help
>
>Dim dtTable As DataTable
>dtTable = pobjDS.Tables("TestResults")
>Dim dvTest As DataView()
>dvTest = New DataView(dtTable)
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform