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.comwww.prenia.comWeblog: blogs.prenia.com/cathi