Load a CSV file into a DataGrid

Posted by Calanus on Stack Overflow See other posts from Stack Overflow or by Calanus
Published on 2009-12-08T09:49:17Z Indexed on 2010/05/31 4:42 UTC
Read the original article Hit count: 159

Filed under:
|
|

I'm having a go at moving one of our simpler apps to Silverlight (a bit of a learning exercise). I've quickly come unstuck as I can't figure out how to load (or bind maybe?) a csv file to a datagrid (i.e. so you can point the app at a local csv file and display it to the user). I do have boilerplate code to parse a csv file and return a datatable but I'm shocked to discover that Silverlight doesn't even support DataTable (wtf!).

Any ideas at all how to do this? How do people bind data to a datagrid anyhow?

I'm using Silverlight 3.0 included in VS2010.

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about csv