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

RadGridView row padding styling problem

0 Answers 92 Views
GridView
This is a migrated thread and some comments may be shown as answers.
fenix2222
Top achievements
Rank 2
fenix2222 asked on 14 Jul 2011, 05:31 AM
Hi,

I am trying to create my own style for GridView. I have used blend to edit Default skin for GridView. Everything seems to be fine, except for one little annoying thing. I can not get rid of row padding. It seems to add 1-2px top and bottom margin or padding to every row. I can not find any setting to change. Can you please help, I have spent almost a day on it. Here is my styles for grid, on the bottom I have put the desired look and feel (I couldnt attach project file, it only accepts images. I have attached an image)

<SolidColorBrush x:Key="GridView_GroupPanelOuterBorder" 
Color="#FF848484"/><BR> <telerik:Office_BlackTheme 
x:Key="Theme"/><BR> <telerik:BooleanToVisibilityConverter 
x:Key="BooleanToVisibilityConverter"/><BR> <BR> <SolidColorBrush 
x:Key="ControlBackground" Color="White"/><BR> <SolidColorBrush 
x:Key="ControlOuterBorder" Color="#FF848484"/><BR> <SolidColorBrush 
x:Key="ControlForeground" Color="Black"/><BR> <SolidColorBrush 
x:Key="Item_AlternateBackground" 
Color="#FFF4F4F4"/><BR> <SolidColorBrush 
x:Key="GridView_GridLinesItemBorder" 
Color="#FFCBCBCB"/><BR> <LinearGradientBrush 
x:Key="GridView_GroupPanelBackground" EndPoint="0.5,1" 
StartPoint="0.5,0"><BR>  <GradientStop Color="#FFDFDFDF" 
Offset="1"/><BR>  <GradientStop 
Color="#FFBABABA"/><BR> </LinearGradientBrush><BR> <SolidColorBrush 
x:Key="GridView_GroupPanelForeground" 
Color="Black"/><BR> <BR> <SolidColorBrush 
x:Key="GridView_HeaderInnerBorder" 
Color="#FF4B4B4B"/><BR> <SolidColorBrush 
x:Key="GridView_HeaderOuterBorder_Over" 
Color="#FFCCCCCC"/><BR> <SolidColorBrush 
x:Key="GridView_HeaderInnerBorder_Over" 
Color="Transparent"/><BR> <SolidColorBrush 
x:Key="GridView_HeaderBackground_Over" 
Color="#FFCCCCCC"/><BR> <LinearGradientBrush 
x:Key="GridView_HeaderOuterBorder_Selected" EndPoint="0.5,1" 
StartPoint="0.5,0"><BR>  <GradientStop Color="#FF616161" 
Offset="0"/><BR>  <GradientStop Color="#FF989898" 
Offset="1"/><BR> </LinearGradientBrush><BR> <SolidColorBrush 
x:Key="GridView_HeaderInnerBorder_Selected"/><BR> <SolidColorBrush 
x:Key="GridView_HeaderBackground_Selected" 
Color="#FFCCCCCC"/><BR> <Style x:Key="StretchedContentControl" 
TargetType="ContentControl"><BR>  <Setter 
Property="HorizontalContentAlignment" 
Value="Stretch"/><BR>  <Setter 
Property="VerticalContentAlignment" 
Value="Stretch"/><BR> </Style><BR> <SolidColorBrush 
x:Key="GridView_SortIndicatorColor" Color="Black"/><BR> <Style 
x:Key="ColumnHeaderGripperStyle" 
TargetType="Thumb"><BR>  <Setter Property="Width" 
Value="8"/><BR>  <Setter Property="Background" 
Value="Transparent"/><BR>  <Setter Property="BorderBrush" 
Value="Transparent"/><BR>  <Setter Property="BorderThickness" 
Value="0"/><BR>  <Setter Property="HorizontalContentAlignment" 
Value="Stretch"/><BR>  <Setter 
Property="VerticalContentAlignment" 
Value="Stretch"/><BR>  <Setter Property="Padding" 
Value="0"/><BR>  <Setter Property="Cursor" 
Value="SizeWE"/><BR>  <Setter 
Property="Template"><BR>   <Setter.Value><BR>    <ControlTemplate 
TargetType="Thumb"><BR>     <Border 
BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding 
BorderThickness}" Background="{TemplateBinding Background}" 
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
Padding="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding 
VerticalContentAlignment}"/><BR>    </ControlTemplate><BR>   </Setter.Value><BR>  </Setter><BR> </Style><BR> <SolidColorBrush 
x:Key="GridView_HeaderForeground_Selected" 
Color="Black"/><BR> <ControlTemplate 
x:Key="GridViewHeaderCellTemplate" 
TargetType="telerik:GridViewHeaderCell"><BR>  <Grid 
x:Name="PART_HeaderCellGrid"><BR>   <Grid.ColumnDefinitions><BR>    <ColumnDefinition 
Width="*"/><BR>    <ColumnDefinition 
Width="Auto"/><BR>   </Grid.ColumnDefinitions><BR>   <VisualStateManager.VisualStateGroups><BR>    <VisualStateGroup 
x:Name="CommonStates"><BR>     <VisualStateGroup.Transitions><BR>      <VisualTransition 
GeneratedDuration="00:00:00.2000000" 
To="Normal"/><BR>      <VisualTransition 
GeneratedDuration="00:00:00.2000000" 
To="MouseOver"/><BR>     </VisualStateGroup.Transitions><BR>     <VisualState 
x:Name="Normal"/><BR>     <VisualState 
x:Name="MouseOver"><BR>      <Storyboard><BR>       <DoubleAnimationUsingKeyFrames 
BeginTime="00:00:00" Duration="00:00:00.0010000" 
Storyboard.TargetProperty="Opacity" 
Storyboard.TargetName="GridViewHeaderCell_Over"><BR>        <EasingDoubleKeyFrame 
KeyTime="0:0:0" 
Value="1"/><BR>       </DoubleAnimationUsingKeyFrames><BR>       <ObjectAnimationUsingKeyFrames 
BeginTime="00:00:00" Duration="00:00:00.0010000" 
Storyboard.TargetProperty="Foreground" 
Storyboard.TargetName="ContentPresenter"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" Value="{StaticResource 
GridView_HeaderForeground_Selected}"/><BR>       </ObjectAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>     <VisualState 
x:Name="Ascending"><BR>      <Storyboard><BR>       <ObjectAnimationUsingKeyFrames 
BeginTime="00:00:00" Duration="00:00:00.0010000" 
Storyboard.TargetProperty="Foreground" 
Storyboard.TargetName="ContentPresenter"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" Value="{StaticResource 
GridView_HeaderForeground_Selected}"/><BR>       </ObjectAnimationUsingKeyFrames><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Opacity" 
Storyboard.TargetName="PART_SortIndicator"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="1"/><BR>       </ObjectAnimationUsingKeyFrames><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Opacity" 
Storyboard.TargetName="GridViewHeaderCell_Selected"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="1"/><BR>       </ObjectAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>     <VisualState 
x:Name="Descending"><BR>      <Storyboard><BR>       <ObjectAnimationUsingKeyFrames 
BeginTime="00:00:00" Duration="00:00:00.0010000" 
Storyboard.TargetProperty="Foreground" 
Storyboard.TargetName="ContentPresenter"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" Value="{StaticResource 
GridView_HeaderForeground_Selected}"/><BR>       </ObjectAnimationUsingKeyFrames><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Opacity" 
Storyboard.TargetName="PART_SortIndicator"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="1"/><BR>       </ObjectAnimationUsingKeyFrames><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="RenderTransform" 
Storyboard.TargetName="PART_SortIndicator"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0"><BR>         <DiscreteObjectKeyFrame.Value><BR>          <ScaleTransform 
ScaleY="1" 
ScaleX="1"/><BR>         </DiscreteObjectKeyFrame.Value><BR>        </DiscreteObjectKeyFrame><BR>       </ObjectAnimationUsingKeyFrames><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Opacity" 
Storyboard.TargetName="GridViewHeaderCell_Selected"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="1"/><BR>       </ObjectAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>    </VisualStateGroup><BR>   </VisualStateManager.VisualStateGroups><BR>   <Border 
x:Name="GridViewHeaderCell" BorderBrush="{TemplateBinding BorderBrush}" 
BorderThickness="{TemplateBinding BorderThickness}" 
Grid.ColumnSpan="2"><BR>    <Border 
BorderBrush="{StaticResource GridView_HeaderInnerBorder}" BorderThickness="0" 
Background="{TemplateBinding 
Background}"/><BR>   </Border><BR>   <Border 
x:Name="GridViewHeaderCell_Over" BorderBrush="{StaticResource 
GridView_HeaderOuterBorder_Over}" BorderThickness="{TemplateBinding 
BorderThickness}" Grid.ColumnSpan="2" 
Opacity="0"><BR>    <Border 
BorderBrush="{StaticResource GridView_HeaderInnerBorder_Over}" 
BorderThickness="0" Background="{StaticResource 
GridView_HeaderBackground_Over}"/><BR>   </Border><BR>   <Border 
x:Name="GridViewHeaderCell_Selected" BorderBrush="{StaticResource 
GridView_HeaderOuterBorder_Selected}" BorderThickness="{TemplateBinding 
BorderThickness}" Grid.ColumnSpan="2" 
Opacity="0"><BR>    <Border 
BorderBrush="{StaticResource GridView_HeaderInnerBorder_Selected}" 
BorderThickness="0" Background="{StaticResource 
GridView_HeaderBackground_Selected}"/><BR>   </Border><BR>   <ContentControl 
x:Name="ContentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" 
Content="{TemplateBinding Content}" Grid.Column="0" Foreground="{TemplateBinding 
Foreground}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
IsTabStop="{TemplateBinding IsTabStop}" Margin="{TemplateBinding Padding}" 
Style="{StaticResource StretchedContentControl}" 
VerticalAlignment="{TemplateBinding 
VerticalContentAlignment}"/><BR>   <Path 
x:Name="PART_SortIndicator" Grid.ColumnSpan="2" Data="M0,0 L1,0 2,0 3,0 4,0 5,0 
5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0 z" Fill="{StaticResource 
GridView_SortIndicatorColor}" HorizontalAlignment="Center" Height="3" 
Margin="0,3,0,0" Opacity="0" RenderTransformOrigin=".5,.5" Stretch="Fill" 
VerticalAlignment="Top" 
Width="5"><BR>    <Path.RenderTransform><BR>     <TransformGroup><BR>      <ScaleTransform 
ScaleY="-1" 
ScaleX="1"/><BR>      <SkewTransform 
AngleY="0" 
AngleX="0"/><BR>      <RotateTransform 
Angle="0"/><BR>      <TranslateTransform 
X="0" 
Y="0"/><BR>     </TransformGroup><BR>    </Path.RenderTransform><BR>   </Path><BR>   <telerik:FilteringDropDown 
x:Name="PART_DistinctFilterControl" Grid.Column="1" Margin="0,0,8,0" 
telerik:StyleManager.Theme="{StaticResource Theme}" Visibility="{TemplateBinding 
FilteringUIVisibility}"/><BR>   <Thumb 
x:Name="PART_LeftHeaderGripper" Grid.ColumnSpan="2" HorizontalAlignment="Left" 
IsTabStop="{TemplateBinding IsTabStop}" Style="{StaticResource 
ColumnHeaderGripperStyle}"/><BR>   <Thumb 
x:Name="PART_RightHeaderGripper" Grid.ColumnSpan="2" HorizontalAlignment="Right" 
IsTabStop="{TemplateBinding IsTabStop}" Style="{StaticResource 
ColumnHeaderGripperStyle}"/><BR>  </Grid><BR> </ControlTemplate><BR> <SolidColorBrush 
x:Key="GridView_HeaderBackground" 
Color="#FFEEEEEE"/><BR> <SolidColorBrush 
x:Key="GridView_HeaderOuterBorder" 
Color="#FF848484"/><BR> <SolidColorBrush 
x:Key="GridView_HeaderForeground" Color="#FF000000"/><BR> <Style 
x:Key="GridViewHeaderCellStyle" 
TargetType="telerik:GridViewHeaderCell"><BR>  <Setter 
Property="Template" Value="{StaticResource 
GridViewHeaderCellTemplate}"/><BR>  <Setter 
Property="Background" Value="{StaticResource 
GridView_HeaderBackground}"/><BR>  <Setter 
Property="BorderBrush" Value="{StaticResource 
GridView_HeaderOuterBorder}"/><BR>  <Setter 
Property="BorderThickness" Value="0,0,0,0"/><BR>  <Setter 
Property="FontWeight" Value="Bold" /><BR>  <Setter 
Property="VerticalContentAlignment" 
Value="Center"/><BR>  <Setter 
Property="HorizontalContentAlignment" 
Value="Stretch"/><BR>  <Setter Property="Padding" 
Value="2,0,3,0"/><BR>  <Setter Property="Foreground" 
Value="{StaticResource 
GridView_HeaderForeground}"/><BR> </Style><BR> <SolidColorBrush 
x:Key="GridView_HeaderRowInnerBorder" 
Color="#FF4B4B4B"/><BR> <SolidColorBrush 
x:Key="GridView_HeaderBackground2" 
Color="#FFCCCCCC"/><BR> <DataTemplate 
x:Key="GridViewHeaderIndentCellDataTemplate"><BR>  <telerik:GridViewHeaderIndentCell 
telerik:StyleManager.Theme="{StaticResource 
Theme}"/><BR> </DataTemplate><BR> <ControlTemplate 
x:Key="GridViewHeaderRowTemplate" 
TargetType="telerik:GridViewHeaderRow"><BR>  <telerik:SelectiveScrollingGrid><BR>   <telerik:SelectiveScrollingGrid.ColumnDefinitions><BR>    <ColumnDefinition 
Width="Auto"/><BR>    <ColumnDefinition 
Width="Auto"/><BR>    <ColumnDefinition 
Width="Auto"/><BR>    <ColumnDefinition 
Width="*"/><BR>   </telerik:SelectiveScrollingGrid.ColumnDefinitions><BR>   <Border 
x:Name="PART_GridViewHeaderRowBorder" BorderBrush="{TemplateBinding 
BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" 
Grid.ColumnSpan="4" HorizontalAlignment="{TemplateBinding 
HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" 
VerticalAlignment="{TemplateBinding 
VerticalContentAlignment}"><BR>    <Border 
BorderBrush="{StaticResource GridView_HeaderRowInnerBorder}" BorderThickness="1" 
Background="{TemplateBinding 
Background}"/><BR>   </Border><BR>   <telerik:DataCellsPresenter 
x:Name="PART_DataCellsPresenter" Grid.Column="3" 
telerik:StyleManager.Theme="{StaticResource 
Theme}"/><BR>   <Border x:Name="PART_IndicatorPresenter" 
BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0,0,1,1" 
telerik:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" 
Visibility="{TemplateBinding RowIndicatorVisibility}" 
Width="25"><BR>    <Border 
BorderBrush="{StaticResource GridView_HeaderInnerBorder}" BorderThickness="1" 
Background="{StaticResource 
GridView_HeaderBackground2}"/><BR>   </Border><BR>   <telerik:IndentPresenter 
x:Name="PART_IndentPresenter" Grid.Column="1" ItemTemplate="{StaticResource 
GridViewHeaderIndentCellDataTemplate}" IndentLevel="{TemplateBinding 
IndentLevel}" MinHeight="{TemplateBinding MinHeight}" 
telerik:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" 
telerik:StyleManager.Theme="{StaticResource 
Theme}"/><BR>   <Border 
x:Name="PART_HierarchyIndentPresenter" BorderBrush="{TemplateBinding 
BorderBrush}" BorderThickness="0,0,1,1" Grid.Column="2" 
telerik:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" 
Visibility="{Binding HasHierarchy, Converter={StaticResource 
BooleanToVisibilityConverter}, RelativeSource={RelativeSource TemplatedParent}}" 
Width="25"><BR>    <Border 
BorderBrush="{StaticResource GridView_HeaderInnerBorder}" BorderThickness="1" 
Background="{StaticResource 
GridView_HeaderBackground2}"/><BR>   </Border><BR>  </telerik:SelectiveScrollingGrid><BR> </ControlTemplate><BR> <SolidColorBrush 
x:Key="GridView_HeaderRowBackground" 
Color="#FFCCCCCC"/><BR> <SolidColorBrush 
x:Key="GridView_HeaderRowOuterBorder" Color="#FFCCCCCC"/><BR> <Style 
x:Key="GridViewHeaderRowStyle" 
TargetType="telerik:GridViewHeaderRow"><BR>  <Setter 
Property="Template" Value="{StaticResource 
GridViewHeaderRowTemplate}"/><BR>  <Setter Property="Background" 
Value="{StaticResource 
GridView_HeaderRowBackground}"/><BR>  <Setter 
Property="MinHeight" Value="20"/><BR>  <Setter 
Property="BorderBrush" Value="{StaticResource 
GridView_HeaderRowOuterBorder}"/><BR>  <Setter 
Property="BorderThickness" Value="0,0,0,0"/><BR>  <Setter 
Property="VerticalContentAlignment" 
Value="Stretch"/><BR>  <Setter 
Property="HorizontalContentAlignment" 
Value="Stretch"/><BR>  <Setter Property="Padding" 
Value="0"/><BR> </Style><BR> <BR> <BR> <SolidColorBrush 
x:Key="ItemOuterBorder_Over" Color="#FFCCCCCC"/><BR> <SolidColorBrush 
x:Key="ItemInnerBorder_Over" 
Color="Transparent"/><BR> <SolidColorBrush 
x:Key="ItemBackground_Over" Color="#FFCCCCCC"/><BR> <SolidColorBrush 
x:Key="ItemOuterBorder_Selected" 
Color="#FFCCCCCC"/><BR> <SolidColorBrush 
x:Key="ItemInnerBorder_Selected" 
Color="Transparent"/><BR> <SolidColorBrush 
x:Key="ItemBackground_Selected" 
Color="#FFCCCCCC"/><BR> <SolidColorBrush 
x:Key="ItemOuterBorder_Invalid" 
Color="#FFCE7D7D"/><BR> <SolidColorBrush 
x:Key="ItemInnerBorder_Invalid"/><BR> <LinearGradientBrush 
x:Key="ItemBackground_Invalid" EndPoint="0.5,1" 
StartPoint="0.5,0"><BR>  <GradientStop 
Color="#FFFCDCDC"/><BR>  <GradientStop Color="#FFFCC1C1" 
Offset="1"/><BR> </LinearGradientBrush><BR> <telerik:BooleanToOpacityConverter 
x:Key="BooleanToOpacityConverter"/><BR> <telerik:GridLineWidthToThicknessConverter 
x:Key="GridLineWidthToThicknessConverter"/><BR> <SolidColorBrush 
x:Key="GridView_HierarchyBackground" 
Color="#FFBBBBBB"/><BR> <SolidColorBrush x:Key="ControlInnerBorder" 
Color="#00CCCCCC"/><BR> <SolidColorBrush 
x:Key="GridView_RowIndicatorCellBackground" 
Color="#FFE4E4E4"/><BR> <SolidColorBrush 
x:Key="GridView_NavigatorIndicatorBackground" 
Color="#FF848484"/><BR> <SolidColorBrush 
x:Key="GridView_EditIndicatorBackground1" 
Color="#7F848484"/><BR> <SolidColorBrush 
x:Key="GridView_EditIndicatorBackground2" 
Color="#FFCBCBCB"/><BR> <SolidColorBrush 
x:Key="GridView_EditIndicatorBackground3" 
Color="#FF848484"/><BR> <SolidColorBrush 
x:Key="GridView_EditIndicatorBackground4" 
Color="White"/><BR> <LinearGradientBrush 
x:Key="GridView_ErrorIndicatorBackground1" EndPoint="0.5,1" 
StartPoint="0.5,0"><BR>  <GradientStop Color="#FFFC9999" 
Offset="0"/><BR>  <GradientStop Color="#FFC26666" 
Offset="1"/><BR> </LinearGradientBrush><BR> <SolidColorBrush 
x:Key="GridView_ErrorIndicatorBackground2" 
Color="White"/><BR> <LinearGradientBrush 
x:Key="GridView_ErrorIndicatorBackground3" EndPoint="0.5,1" 
StartPoint="0.5,0"><BR>  <GradientStop Color="Red" 
Offset="0"/><BR>  <GradientStop Color="#FF990000" 
Offset="1"/><BR> </LinearGradientBrush><BR> <LinearGradientBrush 
x:Key="GridView_RowIndicatorCellBackground_Selected" EndPoint="0.5,1" 
StartPoint="0.5,0"><BR>  <GradientStop Color="White" 
Offset="0"/><BR>  <GradientStop Color="#FFE4E4E4" 
Offset="1"/><BR> </LinearGradientBrush><BR> <ControlTemplate 
x:Key="GridViewRowTemplate" 
TargetType="telerik:GridViewRow"><BR>  <Border 
BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0" 
MinHeight="20"><BR>   <VisualStateManager.VisualStateGroups><BR>    <VisualStateGroup 
x:Name="FocusStates"><BR>     <VisualState 
x:Name="Unfocused"/><BR>     <VisualState 
x:Name="Focused"><BR>      <Storyboard><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="(UIElement.Visibility)" 
Storyboard.TargetName="NavigatorIndicator"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="Visible"/><BR>       </ObjectAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>    </VisualStateGroup><BR>    <VisualStateGroup 
x:Name="SelectionStates"><BR>     <VisualState 
x:Name="Unselected"/><BR>    </VisualStateGroup><BR>    <VisualStateGroup 
x:Name="CommonStates"><BR>     <VisualState 
x:Name="Normal"/><BR>     <VisualState 
x:Name="MouseOver"><BR>      <Storyboard><BR>       <ObjectAnimationUsingKeyFrames 
Duration="0" Storyboard.TargetProperty="(UIElement.Visibility)" 
Storyboard.TargetName="Background_Over"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0" 
Value="Visible"/><BR>       </ObjectAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>     <VisualState 
x:Name="Selected"><BR>      <Storyboard><BR>       <ObjectAnimationUsingKeyFrames 
Duration="0" Storyboard.TargetProperty="(UIElement.Visibility)" 
Storyboard.TargetName="Background_Selected"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0" 
Value="Visible"/><BR>       </ObjectAnimationUsingKeyFrames><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Background" 
Storyboard.TargetName="NavigatorIndicatorBackground"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" Value="{StaticResource 
GridView_RowIndicatorCellBackground_Selected}"/><BR>       </ObjectAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>    </VisualStateGroup><BR>    <VisualStateGroup 
x:Name="ValueStates"><BR>     <VisualState 
x:Name="Valid"/><BR>     <VisualState 
x:Name="Invalid"><BR>      <Storyboard><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="(UIElement.Visibility)" 
Storyboard.TargetName="Background_Invalid"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="Visible"/><BR>       </ObjectAnimationUsingKeyFrames><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Visibility" 
Storyboard.TargetName="ErrorIndicator"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="Visible"/><BR>       </ObjectAnimationUsingKeyFrames><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Visibility" 
Storyboard.TargetName="EditIndicator"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="Collapsed"/><BR>       </ObjectAnimationUsingKeyFrames><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Visibility" 
Storyboard.TargetName="NavigatorIndicator"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="Collapsed"/><BR>       </ObjectAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>    </VisualStateGroup><BR>    <VisualStateGroup 
x:Name="EditStates"><BR>     <VisualState 
x:Name="ReadOnlyMode"/><BR>     <VisualState 
x:Name="EditMode"><BR>      <Storyboard><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Visibility" 
Storyboard.TargetName="EditIndicator"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="Visible"/><BR>       </ObjectAnimationUsingKeyFrames><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Visibility" 
Storyboard.TargetName="NavigatorIndicator"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="Visible"/><BR>       </ObjectAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>    </VisualStateGroup><BR>   </VisualStateManager.VisualStateGroups><BR>   <telerik:SelectiveScrollingGrid 
x:Name="grid"><BR>    <telerik:SelectiveScrollingGrid.ColumnDefinitions><BR>     <ColumnDefinition 
Width="Auto"/><BR>     <ColumnDefinition 
Width="Auto"/><BR>     <ColumnDefinition 
Width="Auto"/><BR>     <ColumnDefinition 
Width="Auto"/><BR>    </telerik:SelectiveScrollingGrid.ColumnDefinitions><BR>    <telerik:SelectiveScrollingGrid.RowDefinitions><BR>     <RowDefinition 
Height="Auto"/><BR>     <RowDefinition 
Height="Auto"/><BR>     <RowDefinition 
Height="Auto"/><BR>     <RowDefinition 
Height="Auto"/><BR>    </telerik:SelectiveScrollingGrid.RowDefinitions><BR>    <Border 
x:Name="SelectionBackground" Background="{TemplateBinding Background}" 
Grid.ColumnSpan="2" Grid.Column="2" HorizontalAlignment="{TemplateBinding 
HorizontalContentAlignment}" Margin="0" Padding="0" 
telerik:SelectiveScrollingGrid.SelectiveScrollingClip="True" 
VerticalAlignment="{TemplateBinding 
VerticalContentAlignment}"/><BR>    <Border 
x:Name="Background_Over" BorderBrush="{StaticResource ItemOuterBorder_Over}" 
Background="{StaticResource ItemBackground_Over}" BorderThickness="0" 
Grid.ColumnSpan="2" Grid.Column="2" CornerRadius="1" Margin="0" 
telerik:SelectiveScrollingGrid.SelectiveScrollingClip="True" 
Visibility="Collapsed"/>   <BR>    <Border 
x:Name="Background_Selected" BorderBrush="{StaticResource 
ItemOuterBorder_Selected}" Background="{StaticResource ItemBackground_Selected}" 
BorderThickness="0" Grid.ColumnSpan="2" Grid.Column="2" CornerRadius="1" 
Margin="0" telerik:SelectiveScrollingGrid.SelectiveScrollingClip="True" 
Visibility="Collapsed" /><BR>    <Border 
x:Name="Background_Invalid" Background="{StaticResource ItemBackground_Invalid}" 
BorderBrush="{StaticResource ItemOuterBorder_Invalid}" BorderThickness="0" 
Grid.ColumnSpan="2" Grid.Column="2" CornerRadius="1" Margin="0" 
telerik:SelectiveScrollingGrid.SelectiveScrollingClip="True" 
Visibility="Collapsed" 
/><BR>    <telerik:GridViewToggleButton 
x:Name="PART_HierarchyExpandButton" Grid.Column="2" IsHitTestVisible="{Binding 
IsExpandable, RelativeSource={RelativeSource TemplatedParent}}" 
IsTabStop="{TemplateBinding IsTabStop}" IsChecked="{Binding IsExpanded, 
Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Opacity="{Binding 
IsExpandable, Converter={StaticResource BooleanToOpacityConverter}, 
RelativeSource={RelativeSource TemplatedParent}}" 
telerik:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" 
telerik:StyleManager.Theme="{StaticResource Theme}" Visibility="{Binding 
HasHierarchy, Converter={StaticResource BooleanToVisibilityConverter}, 
RelativeSource={RelativeSource TemplatedParent}}" 
Width="25"/><BR>    <Border Grid.Column="2" 
telerik:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" 
Visibility="{Binding HasHierarchy, Converter={StaticResource 
BooleanToVisibilityConverter}, RelativeSource={RelativeSource 
TemplatedParent}}"/><BR>    <telerik:DataCellsPresenter 
x:Name="PART_DataCellsPresenter" Grid.Column="3" 
telerik:StyleManager.Theme="{StaticResource 
Theme}"/><BR>    <Border Visibility="Collapsed" 
x:Name="PART_RowBorder" BorderBrush="{TemplateBinding HorizontalGridLinesBrush}" 
BorderThickness="0" Grid.ColumnSpan="4" Grid.Column="1" Grid.RowSpan="4" 
telerik:SelectiveScrollingGrid.SelectiveScrollingClip="True" 
VerticalAlignment="Center"/><BR>    <Border 
BorderBrush="Red" BorderThickness="1" Background="{StaticResource 
GridView_HierarchyBackground}" Grid.ColumnSpan="2" Grid.Column="2" Padding="0" 
Grid.Row="2" telerik:SelectiveScrollingGrid.SelectiveScrollingClip="True" 
Visibility="{Binding IsExpanded, Converter={StaticResource 
BooleanToVisibilityConverter}, RelativeSource={RelativeSource 
TemplatedParent}}"><BR>     <ContentPresenter 
x:Name="PART_HierarchyChildPresenter" 
telerik:SelectiveScrollingGrid.SelectiveScrollingClip="True"/><BR>    </Border><BR>    <telerik:DetailsPresenter 
x:Name="PART_DetailsPresenter" Grid.ColumnSpan="2" Grid.Column="2" 
DetailsProvider="{TemplateBinding DetailsProvider}" Grid.Row="1" 
telerik:StyleManager.Theme="{StaticResource Theme}" 
BorderThickness="0"/><BR>    <telerik:IndentPresenter 
x:Name="PART_IndentPresenter" Grid.Column="1" IndentLevel="{TemplateBinding 
IndentLevel}" Grid.RowSpan="4" 
telerik:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" 
telerik:StyleManager.Theme="{StaticResource 
Theme}"/><BR>    <Border 
x:Name="PART_IndicatorPresenter" BorderBrush="{StaticResource 
ControlOuterBorder}" BorderThickness="0,0,0,0" Grid.Column="0" Grid.RowSpan="3" 
telerik:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" 
Visibility="{TemplateBinding RowIndicatorVisibility}" 
VerticalAlignment="Stretch" 
Width="25"><BR>     <Border 
x:Name="NavigatorIndicatorBackground" BorderBrush="{StaticResource 
ControlInnerBorder}" BorderThickness="0" Background="{StaticResource 
GridView_RowIndicatorCellBackground}"><BR>      <Grid><BR>       <Grid 
x:Name="NavigatorIndicator" HorizontalAlignment="Center" Height="11" 
Visibility="Collapsed" VerticalAlignment="Center" 
Width="11"><BR>        <Path 
Data="F1 M 32.0234,6.66669L 24.2923,0.0248413L 28.3697,0.0248413L 32,3.14362L 
36.1492,6.70819L 32,10.2728L 28.4664,13.3085L 24.2923,13.3085L 32.0234,6.66669 Z 
" Fill="{StaticResource GridView_NavigatorIndicatorBackground}" 
HorizontalAlignment="Center" Height="8" Margin="0" Stretch="Fill" 
VerticalAlignment="Center" 
Width="8"/><BR>       </Grid><BR>       <Grid 
x:Name="EditIndicator" HorizontalAlignment="Center" Height="10" 
Visibility="Collapsed" VerticalAlignment="Center" 
Width="16"><BR>        <Path 
Data="M14,9 L15,9 15,10 14,10 z M1,9 L2,9 2,10 1,10 z M15,8 L16,8 16,9 15,9 z 
M0,8 L1,8 1,9 0,9 z M15,1 L16,1 16,2 15,2 z M0,1 L1,1 1,2 0,2 z M14,0 L15,0 15,1 
14,1 z M1,0 L2,0 2,1 1,1 z" Fill="{StaticResource 
GridView_EditIndicatorBackground1}" 
Stretch="Fill"/><BR>        <Path 
Data="M0.99999994,6.9999995 L2,6.9999995 3,6.9999995 4,6.9999995 5,6.9999995 
6,6.9999995 7,6.9999995 8,6.9999995 9,6.9999995 10,6.9999995 11,6.9999995 
12,6.9999995 13,6.9999995 13,7.9999995 12,7.9999995 11,7.9999995 10,7.9999995 
9,7.9999995 8,7.9999995 7,7.9999995 6,7.9999995 5,7.9999995 4,7.9999995 
3,7.9999995&#xa;2,7.9999995 0.99999994,7.9999995 z M13,0.99999994 
L14,0.99999994 14,1.9999999 14,2.9999995 14,3.9999995 14,4.9999995 14,5.9999995 
14,6.9999995 13,6.9999995 13,5.9999995 13,4.9999995 13,3.9999995 13,2.9999995 
13,1.9999999 z M0,0.99999994 L0.99999994,0.99999994 0.99999994,1.9999999 
0.99999994,2.9999995 0.99999994,3.9999995 0.99999994,4.9999995 
0.99999994,5.9999995 0.99999994,6.9999995 0,6.9999995 0,5.9999995 0,4.9999995 
0,3.9999995 0,2.9999995 0,1.9999999 z M11,0 L12,0 13,0 13,0.99999994 
12,0.99999994 11,0.99999994 10,0.99999994 9,0.99999994 8,0.99999994 7,0.99999994 
6,0.99999994 5,0.99999994 4,0.99999994 3,0.99999994 2,0.99999994 
0.99999994,0.99999994 0.99999994,2.3841858E-07 2,2.3841858E-07 3,2.3841858E-07 
4,2.3841858E-07 5,2.3841858E-07 6,2.3841858E-07 7,2.3841858E-07 
8,2.3841858E-07&#xa;9,2.3841858E-07 10,2.3841858E-07 z" 
Fill="{StaticResource GridView_EditIndicatorBackground2}" Margin="1" 
Stretch="Fill"/><BR>        <Path 
Data="M2,9 L3,9 4,9 5,9 6,9 7,9 8,9 9,9 10,9 11,9 12,9 13,9 14,9 14,10 13,10 
12,10 11,10 10,10 9,10 8,10 7,10 6,10 5,10 4,10&#xa;3,10 2,10 z M14,8 L15,8 
15,9 14,9 z M1,8 L2,8 2,9 1,9 z M15,2 L16,2 16,3 16,4 16,5 16,6 16,7 16,8 15,8 
15,7 15,6 15,5 15,4 15,3 z M3,2 L4,2 5,2 6,2 6,3 5,3 5,4 5,5 5,6 5,7 6,7 6,8 5,8 
4,8 3,8 3,7 4,7 4,6 4,5 4,4 4,3 3,3 z M0,2 L1,2 1,3 1,4 1,5 1,6 1,7 1,8 0,8 0,7 
0,6 0,5 0,4 0,3 z M14,1 L15,1 15,2 14,2 z M1,1 L2,1 2,2 1,2 z M2,0 L3,0 4,0 5,0 
6,0 7,0 8,0 9,0 10,0 11,0 12,0 13,0 14,0 14,1 13,1 12,1 11,1 10,1 9,1 8,1 7,1 
6,1 5,1 4,1&#xa;3,1 2,1 z" Fill="{StaticResource 
GridView_EditIndicatorBackground3}" 
Stretch="Fill"/><BR>        <Path 
Data="M4,0 L5,0 6,0 7,0 8,0 9,0 10,0 11,0 12,0 12,1 12,2 12,3 12,4 12,5.0000001 
12,6 11,6 10,6 9,6 8,6 7,6 6,6 5,6 4,6 4,5.0000001&#xa;3,5.0000001 3,4 3,3 
3,2 3,1 4,1 z M0,0 L1,0 1,1 2,1 2,2 2,3 2,4 2,5.0000001 1,5.0000001 1,6 0,6 
0,5.0000001 0,4 0,3 0,2 0,1 z" Fill="{StaticResource 
GridView_EditIndicatorBackground4}" Margin="2" 
Stretch="Fill"/><BR>       </Grid><BR>       <Grid 
x:Name="ErrorIndicator" HorizontalAlignment="Center" Height="16" 
Visibility="Collapsed" VerticalAlignment="Center" 
Width="16"><BR>        <Path 
Data="M3,12.999999 L4,12.999999 5,12.999999 6,12.999999 7,12.999999 8,12.999999 
9,12.999999 10,12.999999 11,12.999999 11,13.999999 10,13.999999 9,13.999999 
8,13.999999 7,13.999999 6,13.999999 5,13.999999 4,13.999999 3,13.999999 z 
M11,11.999999 L12,11.999999 12,12.999999 11,12.999999 z M2.0000001,11.999999 
L3,11.999999 3,12.999999 2.0000001,12.999999 z M12,10.999999 L13,10.999999 
13,11.999999 12,11.999999 z M1,10.999999 L2.0000001,10.999999 
2.0000001,11.999999 1,11.999999 z M13,2.9999992 L14,2.9999992 14,3.9999992 
14,4.9999992 14,5.9999992 14,6.9999992 14,7.9999992 14,8.9999992 14,9.9999992 
14,10.999999 13,10.999999 13,9.9999992 13,8.9999992 13,7.9999992 13,6.9999992 
13,5.9999992 13,4.9999992 13,3.9999992 z M0,2.9999992 L1,2.9999992 1,3.9999992 
1,4.9999992 1,5.9999992 1,6.9999992 1,7.9999992 1,8.9999992 1,9.9999992 
1,10.999999 0,10.999999 0,9.9999992 0,8.9999992 0,7.9999992 0,6.9999992 
0,5.9999992 0,4.9999992 0,3.9999992 z M12,1.9999999 L13,1.9999999 13,2.9999992 
12,2.9999992 z M1,1.9999999 L2.0000001,1.9999999 2.0000001,2.9999992 1,2.9999992 
z M11,0.99999994 L12,0.99999994 12,1.9999999 11,1.9999999 z 
M2.0000001,0.99999994 L2.9999998,0.99999994 2.9999998,1.9999999 
2.0000001,1.9999999 z M2.9999998,0 L3.9999998,0 5,0 6,0 7,0 8,0 9,0 10,0 11,0 
11,0.99999994 10,0.99999994 9,0.99999994 8,0.99999994 7,0.99999994 6,0.99999994 
5,0.99999994 3.9999998,0.99999994 2.9999998,0.99999994 z" Fill="{StaticResource 
GridView_ErrorIndicatorBackground1}" Margin="1" 
Stretch="Fill"/><BR>        <Path 
Data="M1.4901161E-07,8 L1.0000001,8 2.0000002,8 2.0000002,9 2.0000002,10 
1.0000003,10 1.0000003,9 1.0000001,10 1.4901161E-07,10 1.4901161E-07,9 z 
M1.4901161E-07,0 L1.0000001,0 2.0000002,0 2.0000002,1 2.0000002,2 2.0000002,3 
2.0000002,4.0000001 2.0000002,5 2.0000002,5.9999999 2.0000002,7 1.0000001,7 
1.4901161E-07,7 1.4901161E-07,5.9999999 1.4901161E-07,5 1.4901161E-07,4.0000001 
1.4901161E-07,3 1.4901161E-07,2 0,1 z" Fill="{StaticResource 
GridView_ErrorIndicatorBackground2}" Margin="7,3" 
Stretch="Fill"/><BR>        <Path 
Data="M4,15 L5,15 6,15 7,15 8,15 9,15 10,15 11,15 12,15 12,16 11,16 10,16 9,16 
8,16 7,16 6,16 5,16 4,16 z M12,14 L13,14 13,15 12,15 z M3,14 L4,14 4,15 3,15 z 
M13,13 L14,13 14,14 13,14 z M2,13 L3,13 3,14 2,14 z M14,12 L15,12 15,13 14,13 z 
M1,12 L2,12 2,13 1,13 z M7,11 L7,12 7,13 8,13 9,13 9,12 9,11 8,11 z M15,4 L16,4 
16,5 16,6 16,7 16,8 16,9 16,10 16,11 16,12 15,12 15,11 15,10 15,9 15,8 15,7 15,6 
15,5 z M0,4 L1,4 1,5 1,6 1,7 1,8 1,9 1,10 1,11 1,12 0,12 0,11 0,10 0,9 0,8 0,7 
0,6 0,5 z M14,3 L15,3 15,4 14,4 z M7,3 L7,4 7,5 7,6 7,7 7,8 7,9 7,10 8,10 9,10 
9,9 9,8 9,7 9,6 9,5 9,4 9,3 8,3 z M1,3 L2,3 2,4 1,4 z M13,2 L14,2 14,3 13,3 z 
M4,2 L5,2 6,2 7,2 8,2 9,2 10,2 11,2 12,2 12,3 13,3 13,4 14,4 14,5 14,6 14,7 14,8 
14,9 14,10 14,11 14,12 13,12 13,13 12,13&#xa;12,14 11,14 10,14 9,14 8,14 
7,14 6,14 5,14 4,14 4,13 3,13 3,12 2,12 2,11 2,10 2,9 2,8 2,7 2,6 2,5 2,4 3,4 
3,3&#xa;4,3 z M2,2 L3,2 3,3 2,3 z M12,1 L13,1 13,2 12,2 z M3,1 L4,1 4,2 3,2 
z M4,0 L5,0 6,0 7,0 8,0 9,0 10,0 11,0 12,0 12,1 11,1 10,1 9,1 8,1 7,1 6,1 5,1 
4,1 z" Fill="{StaticResource GridView_ErrorIndicatorBackground3}" 
Stretch="Fill"/><BR>       </Grid><BR>      </Grid><BR>     </Border><BR>    </Border><BR>   </telerik:SelectiveScrollingGrid><BR>  </Border><BR> </ControlTemplate><BR> <SolidColorBrush 
x:Key="ItemBackground" Color="White"/><BR> <Style 
x:Key="GridViewRowStyle" 
TargetType="telerik:GridViewRow"><BR>  <Setter 
Property="IsTabStop" Value="False"/><BR>  <Setter 
Property="Template" Value="{StaticResource 
GridViewRowTemplate}"/><BR>  <Setter Property="Background" 
Value="{StaticResource ItemBackground}"/><BR>  <Setter 
Property="BorderBrush" Value="{StaticResource 
GridView_GridLinesItemBorder}"/><BR>  <Setter 
Property="BorderThickness" Value="0"/><BR>  <Setter 
Property="FontWeight" Value="Normal"/><BR>  <Setter 
Property="VerticalContentAlignment" 
Value="Stretch"/><BR>  <Setter 
Property="HorizontalContentAlignment" 
Value="Stretch"/><BR>  <Setter Property="Padding" 
Value="0"/><BR>  <Setter Property="MinHeight" Value="20" 
/><BR>  <Setter Property="Margin" Value="0"/>   
<BR>  <!--<Setter Property="Height" Value="20" 
/>--><BR> </Style><BR> <SolidColorBrush 
x:Key="ItemOuterBorder_Over2" 
Color="#FFFFC92B"/><BR> <SolidColorBrush 
x:Key="ItemInnerBorder_Over2" 
Color="#00FFFFFF"/><BR> <LinearGradientBrush 
x:Key="ItemBackground_Over2" EndPoint="0.5,1" 
StartPoint="0.5,0"><BR>  <GradientStop Color="#FFFFFBA3" 
Offset="1"/><BR>  <GradientStop Color="#FFFFFBDA" 
Offset="0"/><BR> </LinearGradientBrush><BR> <SolidColorBrush 
x:Key="ItemOuterBorder_Selected2" 
Color="#FFCCCCCC"/><BR> <LinearGradientBrush 
x:Key="ItemBackground_Selected2" EndPoint="0.5,1" 
StartPoint="0.5,0"><BR>  <GradientStop Color="#FFFCE79F" 
Offset="1"/><BR>  <GradientStop 
Color="#FFFDD3A8"/><BR> </LinearGradientBrush><BR> <SolidColorBrush 
x:Key="ControlOuterBorder_Invalid" 
Color="#FFDB000C"/><BR> <SolidColorBrush 
x:Key="ControlInnerBorder_Invalid" 
Color="White"/><BR> <ControlTemplate 
x:Key="ValidationToolTipTemplate" 
TargetType="ToolTip"><BR>  <Grid x:Name="Root" Margin="0,0" 
Opacity="0" 
RenderTransformOrigin="0,0"><BR>   <Grid.RenderTransform><BR>    <TranslateTransform 
x:Name="xform" 
X="-25"/><BR>   </Grid.RenderTransform><BR>   <VisualStateManager.VisualStateGroups><BR>    <VisualStateGroup 
x:Name="OpenStates"><BR>     <VisualStateGroup.Transitions><BR>      <VisualTransition 
GeneratedDuration="0"/><BR>      <VisualTransition 
GeneratedDuration="0:0:0.2" 
To="Open"><BR>       <Storyboard><BR>        <DoubleAnimationUsingKeyFrames 
Storyboard.TargetProperty="X" 
Storyboard.TargetName="xform"><BR>         <SplineDoubleKeyFrame 
KeyTime="0:0:0.2" 
Value="0"/><BR>        </DoubleAnimationUsingKeyFrames><BR>        <DoubleAnimationUsingKeyFrames 
Storyboard.TargetProperty="Opacity" 
Storyboard.TargetName="Root"><BR>         <SplineDoubleKeyFrame 
KeyTime="0:0:0.2" 
Value="1"/><BR>        </DoubleAnimationUsingKeyFrames><BR>       </Storyboard><BR>      </VisualTransition><BR>     </VisualStateGroup.Transitions><BR>     <VisualState 
x:Name="Closed"><BR>      <Storyboard><BR>       <DoubleAnimationUsingKeyFrames 
Storyboard.TargetProperty="Opacity" 
Storyboard.TargetName="Root"><BR>        <SplineDoubleKeyFrame 
KeyTime="0" 
Value="0"/><BR>       </DoubleAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>     <VisualState 
x:Name="Open"><BR>      <Storyboard><BR>       <DoubleAnimationUsingKeyFrames 
Storyboard.TargetProperty="X" 
Storyboard.TargetName="xform"><BR>        <SplineDoubleKeyFrame 
KeyTime="0" 
Value="0"/><BR>       </DoubleAnimationUsingKeyFrames><BR>       <DoubleAnimationUsingKeyFrames 
Storyboard.TargetProperty="Opacity" 
Storyboard.TargetName="Root"><BR>        <SplineDoubleKeyFrame 
KeyTime="0" 
Value="1"/><BR>       </DoubleAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>    </VisualStateGroup><BR>   </VisualStateManager.VisualStateGroups><BR>   <Border 
Background="#052A2E31" CornerRadius="5" 
Margin="4,4,-4,-4"/><BR>   <Border Background="#152A2E31" 
CornerRadius="4" Margin="3,3,-3,-3"/><BR>   <Border 
Background="#252A2E31" CornerRadius="3" 
Margin="2,2,-2,-2"/><BR>   <Border Background="#352A2E31" 
CornerRadius="2" Margin="1,1,-1,-1"/><BR>   <Border 
Background="#FFDC000C" CornerRadius="2"/><BR>   <Border 
CornerRadius="2"><BR>    <ItemsControl 
ItemsSource="{TemplateBinding 
Content}"><BR>     <ItemsControl.ItemsPanel><BR>      <ItemsPanelTemplate><BR>       <StackPanel/><BR>      </ItemsPanelTemplate><BR>     </ItemsControl.ItemsPanel><BR>     <ItemsControl.ItemTemplate><BR>      <DataTemplate><BR>       <TextBlock 
Foreground="White" MaxWidth="250" Margin="8,4,8,4" TextWrapping="Wrap" 
Text="{Binding}"/><BR>      </DataTemplate><BR>     </ItemsControl.ItemTemplate><BR>    </ItemsControl><BR>   </Border><BR>  </Grid><BR> </ControlTemplate><BR> <LinearGradientBrush 
x:Key="ItemInnerBorder_Invalid2" EndPoint="0.5,1" 
StartPoint="0.5,0"><BR>  <GradientStop 
Color="#FFEBF4FD"/><BR>  <GradientStop Color="#FFDBEAFD" 
Offset="1"/><BR> </LinearGradientBrush><BR> <SolidColorBrush 
x:Key="ItemInnerBorder_Disabled" 
Color="#FFF8F8F8"/><BR> <SolidColorBrush 
x:Key="ItemBackground_Disabled" 
Color="#FFE0E0E0"/><BR> <SolidColorBrush 
x:Key="GridView_CellBackground_Edited" 
Color="#FFFFFFFF"/><BR> <ControlTemplate x:Key="GridViewCellTemplate" 
TargetType="telerik:GridViewCell"><BR>  <Grid><BR>   <VisualStateManager.VisualStateGroups><BR>    <VisualStateGroup 
x:Name="SelectionStates"><BR>     <VisualState 
x:Name="Unselected"/><BR>     <VisualState 
x:Name="Selected"><BR>      <Storyboard><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Visibility" 
Storyboard.TargetName="Background_Selected"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="Visible"/><BR>       </ObjectAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>    </VisualStateGroup><BR>    <VisualStateGroup 
x:Name="CommonStates"><BR>     <VisualState 
x:Name="Normal"/><BR>     <VisualState 
x:Name="Current"><BR>      <Storyboard><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Visibility" 
Storyboard.TargetName="Background_Current"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="Visible"/><BR>       </ObjectAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>     <VisualState 
x:Name="MouseOver"><BR>      <Storyboard><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Visibility" 
Storyboard.TargetName="Background_Over"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="Visible"/><BR>       </ObjectAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>    </VisualStateGroup><BR>    <VisualStateGroup 
x:Name="EditingStates"><BR>     <VisualState 
x:Name="Edited"><BR>      <Storyboard><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Margin" 
Storyboard.TargetName="PART_ContentPresenter"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="0"/><BR>       </ObjectAnimationUsingKeyFrames><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="VerticalAlignment" 
Storyboard.TargetName="PART_ContentPresenter"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="Stretch"/><BR>       </ObjectAnimationUsingKeyFrames><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Background" 
Storyboard.TargetName="PART_CellBorder"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" Value="{StaticResource 
GridView_CellBackground_Edited}"/><BR>       </ObjectAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>     <VisualState 
x:Name="Display"/><BR>    </VisualStateGroup><BR>    <VisualStateGroup 
x:Name="DisabledStates"><BR>     <VisualState 
x:Name="Enabled"/><BR>     <VisualState 
x:Name="Disabled"><BR>      <Storyboard><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Opacity" 
Storyboard.TargetName="PART_CellBorder"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0" 
Value="0.4"/><BR>       </ObjectAnimationUsingKeyFrames><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Opacity" 
Storyboard.TargetName="PART_ContentPresenter"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0" 
Value="0.7"/><BR>       </ObjectAnimationUsingKeyFrames><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Visibility" 
Storyboard.TargetName="Background_Disabled"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="Visible"/><BR>       </ObjectAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>    </VisualStateGroup><BR>    <VisualStateGroup 
x:Name="ValueStates"><BR>     <VisualState 
x:Name="Valid"/><BR>     <VisualState 
x:Name="Invalid"><BR>      <Storyboard><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Visibility" 
Storyboard.TargetName="Background_Invalid"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="Visible"/><BR>       </ObjectAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>     <VisualState 
x:Name="InvalidUnfocused"><BR>      <Storyboard><BR>       <ObjectAnimationUsingKeyFrames 
Storyboard.TargetProperty="Visibility" 
Storyboard.TargetName="Background_Invalid_Unfocused"><BR>        <DiscreteObjectKeyFrame 
KeyTime="0:0:0" 
Value="Visible"/><BR>       </ObjectAnimationUsingKeyFrames><BR>      </Storyboard><BR>     </VisualState><BR>    </VisualStateGroup><BR>   </VisualStateManager.VisualStateGroups><BR>   <Border 
x:Name="PART_CellBorder" BorderBrush="{TemplateBinding VerticalGridLinesBrush}" 
BorderThickness="0,1,0,0" Background="{Binding Background, 
RelativeSource={RelativeSource 
TemplatedParent}}"/><BR>   <Border x:Name="Background_Over" 
BorderBrush="{StaticResource ItemOuterBorder_Over2}" BorderThickness="0" 
Grid.ColumnSpan="2" Grid.Column="2" CornerRadius="1" Margin="0" 
Visibility="Collapsed"><BR>    <BR>   </Border><BR>   <Border 
x:Name="Background_Selected" BorderBrush="{StaticResource 
ItemOuterBorder_Selected2}" BorderThickness="0" Grid.ColumnSpan="2" 
Grid.Column="2" CornerRadius="1" Margin="0" 
Visibility="Collapsed"><BR>    <BR>   </Border><BR>   <Border 
x:Name="Background_Current" BorderBrush="{StaticResource ControlOuterBorder}" 
BorderThickness="1" Grid.ColumnSpan="2" Grid.Column="2" CornerRadius="1" 
Margin="0" Visibility="Collapsed"/><BR>   <Border 
x:Name="Background_Invalid" BorderBrush="{StaticResource 
ControlOuterBorder_Invalid}" BorderThickness="0,0,0,0" 
Background="{StaticResource ItemBackground}" Grid.ColumnSpan="2" Grid.Column="2" 
CornerRadius="1" Margin="0" 
Visibility="Collapsed"><BR>    <ToolTipService.ToolTip><BR>     <ToolTip 
x:Name="validationTooltip" Content="{TemplateBinding Errors}" Placement="Right" 
Template="{StaticResource 
ValidationToolTipTemplate}"/><BR>    </ToolTipService.ToolTip><BR>    <Grid 
Background="Transparent" HorizontalAlignment="Right" Height="12" 
Margin="1,-4,-4,0" VerticalAlignment="Top" 
Width="12"><BR>     <Path Data="M 1,0 L6,0 A 2,2 
90 0 1 8,2 L8,7 z" Fill="{StaticResource ControlOuterBorder_Invalid}" 
Margin="1,3,0,0"/><BR>     <Path Data="M 0,0 L2,0 
L 8,6 L8,8" Fill="{StaticResource ControlInnerBorder_Invalid}" 
Margin="1,3,0,0"/><BR>    </Grid><BR>   </Border><BR>   <Border 
x:Name="Background_Invalid_Unfocused" BorderBrush="{StaticResource 
ItemOuterBorder_Invalid}" BorderThickness="1" Grid.ColumnSpan="2" 
Grid.Column="2" CornerRadius="1" Margin="0" Opacity="1" 
Visibility="Collapsed"><BR>    <Border 
BorderBrush="{StaticResource ItemInnerBorder_Invalid2}" BorderThickness="1" 
Background="{StaticResource 
ItemBackground_Invalid}"/><BR>   </Border><BR>   <Border 
x:Name="Background_Disabled" BorderBrush="{StaticResource 
ItemInnerBorder_Disabled}" BorderThickness="0" Background="{StaticResource 
ItemBackground_Disabled}" Grid.ColumnSpan="2" Grid.Column="2" Margin="0,0,1,1" 
Visibility="Collapsed"/><BR>   <ContentPresenter 
x:Name="PART_ContentPresenter" ContentTemplate="{TemplateBinding 
ContentTemplate}" Content="{TemplateBinding Content}" 
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
Margin="2,0,2,0" VerticalAlignment="{TemplateBinding 
VerticalContentAlignment}"/><BR>  </Grid><BR> </ControlTemplate><BR> <Style 
x:Key="GridViewCellStyle" 
TargetType="telerik:GridViewCell"><BR>  <Setter 
Property="Template" Value="{StaticResource 
GridViewCellTemplate}"/><BR>  <Setter Property="Padding" 
Value="2,0,2,0"/><BR>  <Setter Property="Margin" 
Value="0"/><BR>  <Setter Property="MinHeight" 
Value="20"/><BR>  <Setter Property="BorderBrush" 
Value="{StaticResource 
GridView_GridLinesItemBorder}"/><BR>  <Setter 
Property="BorderThickness" Value="0"/><BR>  <Setter 
Property="VerticalContentAlignment" 
Value="Center"/><BR>  <Setter 
Property="HorizontalContentAlignment" 
Value="Stretch"/><BR>  <Setter Property="Background" 
Value="Transparent"/><BR> </Style><BR> <BR></ResourceDictionary><BR><BR>
This is my grid
<telerik:RadGridView x:Name="rgAddresses" 
Grid.Row="2"                           
      
<BR>    AutoGenerateColumns="False"   <BR>    CanUserFreezeColumns="False"<BR>    CanUserInsertRows="False"<BR>    CanUserDeleteRows="False"<BR>    EditTriggers="None"      
<BR>    ShowGroupPanel="False" 
    <BR>    ActionOnLostFocus="None" 
<BR>    CanUserResizeColumns="False"<BR>    RowIndicatorVisibility="Collapsed"<BR>    RowStyle="{StaticResource 
GridViewRowStyle}"    <BR>    IsFilteringAllowed="False"<BR>    BorderBrush="#cccccc"<BR>    ItemsSource="{Binding 
Addresses}"<BR>    HeaderRowStyle="{StaticResource 
GridViewHeaderRowStyle}"<BR>    HorizontalAlignment="Stretch"><BR>    <telerik:RadGridView.Columns><BR>     <telerik:GridViewDataColumn 
CellStyle="{StaticResource GridViewCellStyle}" HeaderCellStyle="{StaticResource 
GridViewHeaderCellStyle}" Header="Addresses" Width="150" 
DataMemberBinding="{Binding AddressType}" 
/><BR>     <telerik:GridViewDataColumn 
CellStyle="{StaticResource GridViewCellStyle}" HeaderCellStyle="{StaticResource 
GridViewHeaderCellStyle}" Header="" Width="*" DataMemberBinding="{Binding 
FullAddress}" 
/><BR>     <telerik:GridViewDataColumn 
CellStyle="{StaticResource GridViewCellStyle}" HeaderCellStyle="{StaticResource 
GridViewHeaderCellStyle}" Header="Date Modified" Width="150" 
DataMemberBinding="{Binding DateModified}" DataFormatString="dd/MM/yyyy" 
/><BR>     <telerik:GridViewDataColumn 
CellStyle="{StaticResource GridViewCellStyle}" HeaderCellStyle="{StaticResource 
GridViewHeaderCellStyle}" Header="Status" Width="60" DataMemberBinding="{Binding 
Status}" /><BR>     <telerik:GridViewDataColumn 
CellStyle="{StaticResource GridViewCellStyle}" HeaderCellStyle="{StaticResource 
GridViewHeaderCellStyle}" Header="" 
Width="30"><BR>      <telerik:GridViewDataColumn.CellTemplate><BR>       <DataTemplate><BR>        <Image 
Source="tick.png" Height="15" 
/><BR>       </DataTemplate><BR>      </telerik:GridViewDataColumn.CellTemplate><BR>     </telerik:GridViewDataColumn><BR>    </telerik:RadGridView.Columns><BR>   </telerik:RadGridView><BR>

THis is the desired look
<Border Grid.Row="4" BorderBrush="#cccccc" 
BorderThickness="1"><BR>    <Grid><BR>     <Grid.RowDefinitions><BR>      <RowDefinition 
Height="Auto" />  
<BR>      <RowDefinition Height="Auto" /> 
<BR>      <RowDefinition Height="Auto" 
/> <BR>      <RowDefinition 
Height="Auto" />           
 <BR>     </Grid.RowDefinitions
<BR>     <Grid.ColumnDefinitions><BR>      <ColumnDefinition 
Width="150" /><BR>      <ColumnDefinition 
Width="*" /><BR>      <ColumnDefinition 
Width="150" /><BR>      <ColumnDefinition 
Width="60" /><BR>      <ColumnDefinition 
Width="30" 
/><BR>     </Grid.ColumnDefinitions>           
<BR>     <BR>     <Border 
Grid.Row="0" Padding="2" 
Background="#eeeeee"><BR>      <TextBlock 
Text="Phone numbers" FontWeight="Bold" 
/><BR>     </Border>     <BR>     <Border 
Grid.Row="0" Grid.Column="1" Padding="2" 
Background="#eeeeee"><BR>      <TextBlock 
Text="" FontWeight="Bold" 
/><BR>     </Border>     <BR>     <Border 
Grid.Row="0" Grid.Column="2" Padding="2" 
Background="#eeeeee"><BR>      <TextBlock 
Text="Date Modified" FontWeight="Bold" 
/><BR>     </Border>     <BR>     <Border 
Grid.Row="0" Grid.Column="3" Padding="2" 
Background="#eeeeee"><BR>      <TextBlock 
Text="Status" FontWeight="Bold" 
/><BR>     </Border>     <BR>     <Border 
Grid.Row="0" Grid.Column="4" Padding="2" 
Background="#eeeeee"><BR>      <TextBlock 
Text="" FontWeight="Bold" 
/><BR>     </Border><BR>     <BR>     <Border 
Grid.Row="1" Grid.Column="0" Padding="2" BorderBrush="#cccccc" 
BorderThickness="0,1,0,0"><BR>      <TextBlock 
Text="Business Phone" 
/><BR>     </Border><BR>     <Border 
Grid.Row="1" Grid.Column="1" Padding="2" BorderBrush="#cccccc" 
BorderThickness="0,1,0,0"><BR>      <TextBlock 
Text="(02) 9999 1234" 
/><BR>     </Border><BR>     <Border 
Grid.Row="1" Grid.Column="2" Padding="2" BorderBrush="#cccccc" 
BorderThickness="0,1,0,0"><BR>      <TextBlock 
Text="01/01/2011" 
/><BR>     </Border><BR>     <Border 
Grid.Row="1" Grid.Column="3" Padding="2" BorderBrush="#cccccc" 
BorderThickness="0,1,0,0"><BR>      <TextBlock 
Text="Current" 
/><BR>     </Border><BR>     <Border 
Grid.Row="1" Grid.Column="4" Padding="2" BorderBrush="#cccccc" 
BorderThickness="0,1,0,0"><BR>      <Image 
Source="tick.png" Height="15" 
/><BR>     </Border><BR>     <BR>     <Border 
Grid.Row="2" Grid.Column="0" Padding="2" BorderBrush="#cccccc" 
BorderThickness="0,1,0,0"><BR>      <TextBlock 
Text="Home Phone" 
/><BR>     </Border><BR>     <Border 
Grid.Row="2" Grid.Column="1" Padding="2" BorderBrush="#cccccc" 
BorderThickness="0,1,0,0"><BR>      <TextBlock 
Text="(07) 7894 4567" 
/><BR>     </Border><BR>     <Border 
Grid.Row="2" Grid.Column="2" Padding="2" BorderBrush="#cccccc" 
BorderThickness="0,1,0,0"><BR>      <TextBlock 
Text="01/01/2011" 
/><BR>     </Border><BR>     <Border 
Grid.Row="2" Grid.Column="3" Padding="2" BorderBrush="#cccccc" 
BorderThickness="0,1,0,0"><BR>      <TextBlock 
Text="Current" 
/><BR>     </Border><BR>     <Border 
Grid.Row="2" Grid.Column="4" Padding="2" BorderBrush="#cccccc" 
BorderThickness="0,1,0,0"><BR>      <Image 
Source="tick.png" Height="15" 
/><BR>     </Border><BR>     <BR>     <Border 
Grid.Row="3" Grid.Column="0" Padding="2" BorderBrush="#cccccc" 
BorderThickness="0,1,0,0"><BR>      <TextBlock 
Text="Mobile Phone" 
/><BR>     </Border><BR>     <Border 
Grid.Row="3" Grid.Column="1" Padding="2" BorderBrush="#cccccc" 
BorderThickness="0,1,0,0"><BR>      <TextBlock 
Text="0409 789 457" 
/><BR>     </Border><BR>     <Border 
Grid.Row="3" Grid.Column="2" Padding="2" BorderBrush="#cccccc" 
BorderThickness="0,1,0,0"><BR>      <TextBlock 
Text="01/01/2011" 
/><BR>     </Border><BR>     <Border 
Grid.Row="3" Grid.Column="3" Padding="2" BorderBrush="#cccccc" 
BorderThickness="0,1,0,0"><BR>      <TextBlock 
Text="Current" 
/><BR>     </Border><BR>     <Border 
Grid.Row="3" Grid.Column="4" Padding="2" BorderBrush="#cccccc" 
BorderThickness="0,1,0,0"><BR>      <Image 
Source="tick.png" Height="15" 
/><BR>     </Border><BR>          <BR>    </Grid><BR>   </Border>

No answers yet. Maybe you can help?

Tags
GridView
Asked by
fenix2222
Top achievements
Rank 2
Share this question
or