This is a migrated thread and some comments may be shown as answers.

[Solved] Load grid data from CSV file

3 Answers 324 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ivan
Top achievements
Rank 1
Ivan asked on 04 Nov 2010, 09:02 PM
Hi,

Is it possible to load the RadGridView Data from a csv file. Or from a list of Strings? We have to read a csv file and display it in the grid, however as the file contents will be delimited, I do not know how many columns of data will be in the file.

I could convert the contents of the file into a list filled with lists of string. Is there a way to load tis data into a grid?

Regards,

Ivan.

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 05 Nov 2010, 08:02 AM
Hello Ivan,

 It will be better to parse this to our lightweight DataTable

Greetings,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ivan
Top achievements
Rank 1
answered on 12 Nov 2010, 04:28 PM
Hi Vlad,
That worked to display the content. Thank you.
However because the columns are created at run time, is there a way I can get them to be editable?

I need to make the first row editable with ComboBoxes, However there does not seem to be a way I can get the CellEditTemplate to get set.

Can you guide me to get a ComboBox to edit the row contents?

Regards,

Ivan
0
Pavel Pavlov
Telerik team
answered on 12 Nov 2010, 04:59 PM
Hi Ivan,

You can use GridViewComboBoxColumn .


Best wishes,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Ivan
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Ivan
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or