How to define ColumnHeader for GridView

I created the following DataTemplate

which I used WrapGrid

as ItemsPanel

for it GridView

now I would like to add ColumnHeader

for each column

My current XAML is

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="auto" />
        <RowDefinition Height="auto" />
    </Grid.RowDefinitions>
    <TextBlock Text="{Binding Name}" />

    <GridView Grid.Row="1"    
                HorizontalAlignment="Stretch"         
                ItemsSource="{Binding Details}"
                ItemContainerStyle="{StaticResource GridViewItemStyleIOhneHover}"
                ItemTemplateSelector="{StaticResource MyDataTemplateSelector}">
        <GridView.ItemsPanel>
            <ItemsPanelTemplate>
                <WrapGrid Orientation="Horizontal"
                            HorizontalAlignment="Stretch"
                            MaximumRowsOrColumns="2"
                            HorizontalChildrenAlignment="Stretch"
                            VerticalChildrenAlignment="Stretch">
                </WrapGrid>
            </ItemsPanelTemplate>
        </GridView.ItemsPanel>
    </GridView>
</Grid>

      

Creates a look like this

enter image description here

But it should look at the end

enter image description here

+3
c # gridview winrt-xaml


source to share


No one has answered this question yet

Check out similar questions:

3575
How to list a transfer?
4
How to print a formatted page containing a ListBox or GridView
3
Size GridViewItems to Fill GridView?
2
Windows Store ListView ItemStackPanel horizontal scrollbar not visible
1
Go to another page IocContainers and MVVM light
1
How to create a GridView for a scrollable display
0
How to print the date
0
How to change color of selected item in ListView in WinRT
0
How to show date in ListBox
0
How to make a GridView control vertical or horizontal



All Articles
Loading...
X
Show
Funny
Dev
Pics