This question is locked. New answers and comments are not allowed.
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?
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> |
