Hello,
I am using the Telerik GridView control. I am trying to define a GridView that will recreate the image found here (and attached): http://i891.photobucket.com/albums/ac118/aparanoidandroid/orders.png
In an attempt to recreate this, I have added the following code:
However, I am not sure how to display the order details. The order details are the "shirts", "shoes", "socks", etc. rows displayed in the image. You will notice that each of these items spans the length of the checkbox fields. In addition, the information in these rows must be saved back to a database. And, each order must be selectable.
I'm totally lost on how to implement this. My main concern is getting the UI defined at this point.
Thank you for your help!
I am using the Telerik GridView control. I am trying to define a GridView that will recreate the image found here (and attached): http://i891.photobucket.com/albums/ac118/aparanoidandroid/orders.png
In an attempt to recreate this, I have added the following code:
<telerik:RadGridView x:Name="myGridView" AutoGenerateColumns="False"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn Header="Order #" |
DataMemberBinding="{Binding OrderNumber}" /> |
<telerik:GridViewDataColumn Header="Details"> |
<telerik:GridViewDataColumn.CellTemplate> |
<DataTemplate> |
<StackPanel Orientation="Vertical"> |
<StackPanel Orientation="Horizontal"> |
<TextBlock Text="Ordered On: " /> |
<TextBlock Text="{Binding OrderDate}" /> |
</StackPanel> |
<StackPanel Orientation="Horizontal"> |
<TextBlock Text="Placed By: " /> |
<TextBlock Text="{Binding OrderUserName}" /> |
</StackPanel> |
</StackPanel> |
</DataTemplate> |
</telerik:GridViewDataColumn.CellTemplate> |
</telerik:GridViewDataColumn> |
<telerik:GridViewDataColumn Header="Received" |
DataMemberBinding="{Binding IsReceived}" TextAlignment="Center"> |
<telerik:GridViewDataColumn.CellTemplate> |
<DataTemplate> |
<CheckBox IsChecked="{Binding IsReceived}" /> |
</DataTemplate> |
</telerik:GridViewDataColumn.CellTemplate> |
</telerik:GridViewDataColumn> |
<telerik:GridViewDataColumn Header="Packed" |
DataMemberBinding="{Binding IsPacked}" TextAlignment="Center"> |
<telerik:GridViewDataColumn.CellTemplate> |
<DataTemplate> |
<CheckBox IsChecked="{Binding IsPacked}" /> |
</DataTemplate> |
</telerik:GridViewDataColumn.CellTemplate> |
</telerik:GridViewDataColumn> |
<telerik:GridViewDataColumn Header="Shipped" |
DataMemberBinding="{Binding IsShipped}" TextAlignment="Center"> |
<telerik:GridViewDataColumn.CellTemplate> |
<DataTemplate> |
<CheckBox IsChecked="{Binding IsShipped}" /> |
</DataTemplate> |
</telerik:GridViewDataColumn.CellTemplate> |
</telerik:GridViewDataColumn> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
However, I am not sure how to display the order details. The order details are the "shirts", "shoes", "socks", etc. rows displayed in the image. You will notice that each of these items spans the length of the checkbox fields. In addition, the information in these rows must be saved back to a database. And, each order must be selectable.
I'm totally lost on how to implement this. My main concern is getting the UI defined at this point.
Thank you for your help!