This is a migrated thread and some comments may be shown as answers.

Adding stack panel to gridviewcolumngroup header

2 Answers 192 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Adam
Top achievements
Rank 2
Adam asked on 04 Jun 2012, 02:29 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Vera
Telerik team
answered on 04 Jun 2012, 02:49 PM
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 >>

0
Adam
Top achievements
Rank 2
answered on 04 Jun 2012, 04:19 PM
Awesome! Thanks Vera

Tags
GridView
Asked by
Adam
Top achievements
Rank 2
Answers by
Vera
Telerik team
Adam
Top achievements
Rank 2
Share this question
or