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

Style for GridViewHeaderRow

1 Answer 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
VeeraMalleswaraRao Gali
Top achievements
Rank 1
VeeraMalleswaraRao Gali asked on 21 Jun 2010, 09:46 AM
Hi.

I want to write a style for GridViewHeaderRow type.
I am writing a style in app.xaml, it is giving exception at InitializeComponent() of app.xaml.cs.
My code is :
<Application
xmlns:radheader=" clr-namespace:Telerik.Windows.Controls.GridView ; assembly=Telerik.Windows.Controls "   >

<Application.Resources>
<Style x : Key = "myradgridviewheaderstyle" TargetType="radheader:GridViewHeaderRow">
   <Setter x:Name = "RadGridViewColumnHeaderStyle" property="Template">
            <Setter.Value>
              <ControlTemplate TargetType="radheader:GridViewHeaderRow">
                      <StackPanel>   </StackPanel>
              </ControlTemplate>
           </Setter.Value>
   <Setter>
</Style>


Regards,
VeeraMalleswaraRao.G

</Application.Resources>

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Jun 2010, 12:14 PM
Hi,

 The xmlns should point to Telerik.Windows.Controls.GridView namespace in Telerik.Windows.Controls.GridView assembly. 

All the best,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
VeeraMalleswaraRao Gali
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or