Adding stack panel to gridviewcolumngroup header

3 posts, 1 answers
  1. Adam
    Adam avatar
    40 posts
    Member since:
    Dec 2011

    Posted 04 Jun 2012 Link to this post

    I'm trying to add a stack panel to the header of my grid view column group but I keep getting weird results. Is this not doable? I figured the header value in the grid column group would behave the same as the column header.

    Code:

                                <telerik:GridViewColumnGroup Name="colGroup">
                                    <telerik:GridViewColumnGroup.Header>
                                        <StackPanel>
                                            <TextBlock>
                                                Some
                                            </TextBlock>
                                            <TextBlock>
                                                Text Here
                                            </TextBlock>
                                        </StackPanel>
                                    </telerik:GridViewColumnGroup.Header>
                                </telerik:GridViewColumnGroup>
  2. Answer
    Vera
    Admin
    Vera avatar
    268 posts

    Posted 04 Jun 2012 Link to this post

    Hello Adam,

     
    You can use HeaderTemplate instead. Please take a look at this help article for a reference.


    Kind regards,
    Vera
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Adam
    Adam avatar
    40 posts
    Member since:
    Dec 2011

    Posted 04 Jun 2012 Link to this post

    Awesome! Thanks Vera

Back to Top