or
When binding the GridView to a LINQ result specifying entity names ("c" in the example below) without attributes the GridView displays their type name only and does not autogenerate colummns for their attributes:
Dim q = From c In qc Join s In qs On c.CustomerID Equals s.CustomerID |
Select New With {c, s.Size} |
DataGrid1.ItemsSource = q.ToList |
does not autocreate the grid columns for "c", it displays the type name. |
The grid displays:
WpsApp1.NorthwindService.Customers | small
WpsApp1.NorthwindService.Customers | big
How can I make the GridView autogenerate columns for entities in "Select New {}"?
<t_dock:RadPane> |
<t_dock:RadPane.Header> |
<StackPanel Orientation="Horizontal"> |
<Image Width="16" Source="Images/sample.png" /> |
<Label>Sample</Label> |
</StackPanel> |
</t_dock:RadPane.Header> |
This works well. However, the pane now displays "System.Windows.Controls.StackPanel" in the top area. How can I change this to display the label "Sample" instead?