lets say I do :
Dim q As IEnumerable(Of DataRow) = From x In dt.AsEnumerable()
Where x.Field(Of String)("Code") = _value
I have error saying invalid cast "Code" if Int32.. I know i should change the words "Of String" and write" Of Integer
but sometimes I will be String... becasue dt changes depending what the user do.
how can I detect wich Type is "Code" and write correctly of Field(Of 'dynamicType') ?