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

[Solved] Binding issues

1 Answer 57 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.
thdwlgP
Top achievements
Rank 1
thdwlgP asked on 19 Aug 2009, 06:15 PM
Got 2 questions:

1) Is there a way to bind sliverlight Grid to a list of a list object? I'm trying to bind a single Grid to a webservice return object call that returns list of key(columnanme) value(column value) random column numbers.

2) I tried to create columns dynamically in code behind like below but when I bound the grid to a list of an object all the cells were blank.
In this case say columnCount = 2.
I had a List<someObject> where someObject has 2 properties. Why wont it bound? Is it because I'm missing DataMemberPath?

for (int c = 0; c < columnCount; c++) 
 { 
    Telerik.Windows.Controls.GridViewColumn col = new Telerik.Windows.Controls.GridViewColumn();                                      
    uxGrid.Columns.Insert(c, col);                                  
 } 
<telerikGridView:RadGridView x:Name="uxGrid" Width="Auto" MaxHeight="450" Visibility="Collapsed"
 
AutoGenerateColumns="false"  
 IsFilteringAllowed="False" ScrollMode="RealTime" IsReadOnly="True" RowIndicatorVisibility="Collapsed"</telerikGridView:RadGridView>                     

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 20 Aug 2009, 05:10 AM
Hello thdwlgP,

If you want to create hierarchical grid I suggest you to check this demo:
http://demos.telerik.com/silverlight/#GridView/Hierarchy/PropertyHierarchy

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
thdwlgP
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or