dttestreport, tdtReportInfo are all of typed ReportInfoDataTable. gf.SelectDistinct returns an untyped dataTable. So what I want to do is cast the untyped table as ReportInfoDataTable.
The error that is being returned is "Specified Cast Is Not Valid."
I'd say you would either create it as the correct type initially or, if you can't, loop through the rows and add them to a new instance of the correct object type.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.