I have searched Google and StackOverflow for an answer - have found related topics, including questions with similr titles, but they seem a bit over my head or unclear.
I'm trying to assign an object as the datasource of a Grid. I'm able to do so by creating a table and writing the values as such:
Do FromVal( 0 ) ToVal( ORD_Array.OrderList.Length - 1 ) Index( IX )
ORD_Record = ORD_Array.OrderList[IX]
Ord_BLTz00 = ORD_Record.BLTz00
Ord_ORDz00 = ORD_Record.ORDz00
Ord_BLTA00 = ORD_Record.BLTA00
Ord_SHPA00 = ORD_Record.SHPA00
Ord_SNAM00 = ORD_Record.SNAM00
GridView1.DataSource = OrderMem.Dataset.Tables["OrdMf"]
GridView1.DataBind()
EndDo
This works, but I'm sure that I can assign ORD_Record directly as the datasource except first converting it to a valid type - otherwise I receive an error. Can someone explain what I need to do to ORD_Record to convert it to a type that can be bound to the datagrid saving me from creating tables?