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

[Solved] Populate Gridview Problem

2 Answers 145 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.
Johnny
Top achievements
Rank 1
Johnny asked on 24 Oct 2009, 05:09 PM
Essentially I am attempting to display formatted data - unknown number of columns/rows at design time - into the gridview.  Currently all data is returned to an observable collection but I need the ability to manipulate this data.  The original plan was to temporarily store the manipulated data into a dynamic array.  This would allow me to dynamically set column headers as well as the individual cells within the gridiview.  The problem occurs in that I am unable to populate the grid - grdTemp.ItemSource - strArray.

All of the rows/columns appear empty but if I export the gridview to excel then all of the rows are populated correctly.  Any assistance or a better method to achieve the desired results would be greatly appreciated.

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 Oct 2009, 07:12 AM
Hello Johnny,

Please check this blog post to know more about how to achieve your goal easily:
http://blogs.telerik.com/vladimirenchev/posts/09-04-23/lightweight_datatable_for_your_silverlight_applications.aspx

Sincerely yours,
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
Marc Roussel
Top achievements
Rank 1
answered on 08 Dec 2009, 12:58 PM
Hi,

I just started using the demo and I did not find any way to populate the grid yet.
No ItemSource, no DataContext, So could you tell me how you populate de gridview by C# code ?

I see in your demos you're using ItemsSource which isn't there from the intellisence
What am I doing wrong ?

Oh.  I found that I was missing a dll.  I need to add the Data one which then showed the properties I needed.

Thank you

Tags
GridView
Asked by
Johnny
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Marc Roussel
Top achievements
Rank 1
Share this question
or