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

[Solved] GridView Template

0 Answers 147 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.
Celeste
Top achievements
Rank 1
Celeste asked on 03 Dec 2009, 02:19 PM
Hi:
I want to customize the style for the gridview, so I edited GridViewHeaderRow template, GridViewRowTemplate, and others.
I need to change scrollbar style, so I edited GridView Template in Blend.

By default, if I put edit template, it creates an empty template, so I am doing the next: I choose edit style for gridview and so I can see gridview template. But I have to do some changes because it throws errors some lines, for example:

<Setter Property="AlternateRowStyle">  
    <Setter.Value> 
     <Style BasedOn="{StaticResource Telerik.Windows.Controls.GridView.GridViewRow}" TargetType="Telerik_Windows_Controls_GridView:GridViewRow">  
      <Setter Property="Background" Value="{StaticResource GridViewRowInnerBorderBackground_Alternate}"/>  
     </Style> 
    </Setter.Value> 
</Setter>

Finally I could edit everything I needed, I've tested and everything was ok, except in one page that I have a gridview inside two tabitems. It throws a not handled exception. 

I´ve removed template and it works ok again. I would like to know why I can´t edit GridView template in Blend normally just like for other controls, if there is another way to change Scrollbar style for gridview (with additional templates), etc.

how can I resolve this issue?


Thanks

Celeste

ps: I´ve opened a support ticket,  to attached the file where I describes the resources...(ticket ID is : 263876 )

(I am using dlls 2009.3 1127)
Tags
GridView
Asked by
Celeste
Top achievements
Rank 1
Share this question
or