Hi all,
I created my query:
UtranCell_Id,target_cell,selectionPriority are string.
Now I want to convert this query in a DataTable. I used following code:
But I obtained error:
Impossible to execute cast of objects of type 'VB$AnonymousType_3`3[System.Object,System.Object,System.Object]' on type 'System.Data.DataRow'
So i cannot know how to proceed.
Any suggestion will be appreciated
thanks in advanced
Gio
I created my query:
vb.net Code:
Dim query As EnumerableRowCollection = _ From miaTable In MYTABLE_Relation.Tables(0).AsEnumerable() _ Where miaTable!UtranCell_Id = label_master AndAlso lista.Contains(Microsoft.VisualBasic.Right(miaTable!target_cell, 2)) _ Select miaTable!UtranCell_Id, miaTable!target_cell, miaTable!selectionPriority
Now I want to convert this query in a DataTable. I used following code:
vb.net Code:
Dim tabella_relation_intra As DataTable = New DataTable tabella_relation_intra = query.Cast(Of DataRow).CopyToDataTable
But I obtained error:
Impossible to execute cast of objects of type 'VB$AnonymousType_3`3[System.Object,System.Object,System.Object]' on type 'System.Data.DataRow'
So i cannot know how to proceed.
Any suggestion will be appreciated
thanks in advanced
Gio