Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2690
XamGrid ColumnName
posted

If the xamgrid Column name is too long can it be split in 2 lines?

Parents
  • 21382
    Suggested Answer
    posted

    Off of the Column object is a HeaderTemplate object where you can put whatever template you want for a column header.

    Although i really wouldnt use a StackPanel in the Template, I would probaly use a <Grid>, it would look something like this.

      <ig:TextColumn Key="Name">
                        <ig:TextColumn.HeaderTemplate>
                            <DataTemplate>
                                <StackPanel>
                                <TextBlock Text="Name"></TextBlock>
                                    <TextBlock Text="Column"></TextBlock>
                                </StackPanel>
                            </DataTemplate>
                        </ig:TextColumn.HeaderTemplate>
                    </ig:TextColumn>
    
Reply Children
No Data