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

[Solved] How to populate GridView with IList<string>

2 Answers 150 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.
Virendra
Top achievements
Rank 1
Virendra asked on 05 Nov 2009, 10:50 AM
Hi,

In my application, 
I have design time GridView and dynamic data.
The data that come to populate GridView is in list<row1col1,row1col2,row1col3,....row2col1,row2col2,....> format.

What is the best way to bind this data to GridView?

thanks
v

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 05 Nov 2009, 11:38 AM
Hello,

You can assign this collection to grid ItemsSource - more info on this demo:
http://demos.telerik.com/silverlight/#GridView/DataSources

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Virendra
Top achievements
Rank 1
answered on 05 Nov 2009, 12:15 PM
Hi,

My list has Column as well as Row data, something like
<
row1col1,row1col2,row1col3,....
row2col1,row2col2,....
...
>

So, how should i assign it to ItemSource to get it displayed in different Rows and Columns.

Thanks
v
Tags
GridView
Asked by
Virendra
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Virendra
Top achievements
Rank 1
Share this question
or