create datatable from array of objects?

  • Thread starter Thread starter hazz
  • Start date Start date
You have to crete the table manually (perhaps by inspecing first row's
column types), but you can import data easily using DataTable.Rows.Add and
passing object array for a row at a time.
 
Thank you Miha! I could see the DataTable.Rows.Add requirement. I will
figure out now to create the table manually. -hazz

Miha Markic said:
You have to crete the table manually (perhaps by inspecing first row's
column types), but you can import data easily using DataTable.Rows.Add and
passing object array for a row at a time.

--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

hazz said:
How can I do that?
Thank you.
-hazz
 
Thank you Cor. The link was very helpful.
And I will pay close attention to my array/column value correspondence.
thanks again.
- Hazz
 
Back
Top