Styling the header row

3 posts, 0 answers
  1. Yovko
    Yovko avatar
    8 posts
    Member since:
    Aug 2012

    Posted 16 Jul 2013 Link to this post

     Hi, I've followed Telerik's guide for styling the GridView's Header row and everything
    seems to work fine, but there's one column I was unable to remove it appears as black line "see the attached picture".
    Where is this in the template?
    and how to remove it?


    <ControlTemplate TargetType="{x:Type telerik:GridViewHeaderRow}">
    					<telerik:SelectiveScrollingGrid>
    						<telerik:SelectiveScrollingGrid.ColumnDefinitions>
    							<ColumnDefinition Width="11"/>
    							<ColumnDefinition Width="14"/>
    							<ColumnDefinition Width="Auto"/>
    							<ColumnDefinition Width="Auto"/>
    							<ColumnDefinition Width="*"/>
    						</telerik:SelectiveScrollingGrid.ColumnDefinitions>
    						<telerik:SelectiveScrollingGrid.RowDefinitions>
    							<RowDefinition Height="Auto"/>
    							<RowDefinition/>
    						</telerik:SelectiveScrollingGrid.RowDefinitions>
    						<telerik:CommonHeaderPresenter x:Name="PART_CommonHeaderPresenter" Grid.Column="4" IsTabStop="False" Grid.Row="1" d:LayoutOverrides="GridBox">
    							
    						</telerik:CommonHeaderPresenter>
    						<Border x:Name="CommonHeaderIndent" BorderBrush="#00848484" BorderThickness="0" Background="{StaticResource Common_Background}" Grid.ColumnSpan="2" telerik:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" Visibility="{Binding Visibility, ElementName=PART_CommonHeaderPresenter}" Grid.Row="1" d:LayoutOverrides="GridBox"/>
    						<Grid x:Name="PART_OuterGrid" Grid.ColumnSpan="5" Grid.Row="1">
    							<Grid.RowDefinitions>
    								<RowDefinition Height="*"/>
    								<RowDefinition Height="*"/>
    							</Grid.RowDefinitions>
    							<Border x:Name="PART_GridViewHeaderRowBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
    								<Border BorderBrush="#004B4B4B" BorderThickness="0" Background="{StaticResource Common_Background}"/>
    							</Border>
    						</Grid>
    						<telerik:DataCellsPresenter x:Name="PART_DataCellsPresenter" Grid.Column="4" IsTabStop="False" Grid.Row="1">
    							
    						</telerik:DataCellsPresenter>
    						<Border x:Name="PART_IndicatorPresenter" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0" Grid.Row="1" telerik:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" Visibility="{TemplateBinding RowIndicatorVisibility}" Width="25" Grid.ColumnSpan="2">
    							<Border BorderBrush="#004B4B4B" BorderThickness="0" Background="{StaticResource Common_Background}">
    								
    							</Border>
    						</Border>
    						<telerik:IndentPresenter x:Name="PART_IndentPresenter" Grid.Column="4" IsTabStop="False" IndentLevel="{TemplateBinding IndentLevel}" MinHeight="{TemplateBinding MinHeight}" Grid.Row="1" telerik:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" d:LayoutOverrides="GridBox">
    							<telerik:IndentPresenter.ItemTemplate>
    								<DataTemplate>
    									<telerik:GridViewHeaderIndentCell IsTabStop="False">
    										
    									</telerik:GridViewHeaderIndentCell>
    								</DataTemplate>
    							</telerik:IndentPresenter.ItemTemplate>
    							
    						</telerik:IndentPresenter>
    						<Border x:Name="PART_CommonHeaderHierarchyIndentPresenterAllLevels" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0" Background="{StaticResource Common_Background}" Grid.Column="4" Grid.Row="1" Grid.RowSpan="1" telerik:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" Width="25" Margin="0,0,233.907,0">
    							<Border.Visibility>
    								<Binding Path="HasHierarchy" RelativeSource="{RelativeSource TemplatedParent}">
    									<Binding.Converter>
    										<telerik:BooleanToVisibilityConverter/>
    									</Binding.Converter>
    								</Binding>
    							</Border.Visibility>
    						</Border>
    						<Border x:Name="PART_CommonHeaderHierarchyIndentPresenterFirstLevel" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0" Background="{StaticResource Common_Background}" Grid.Column="4" Margin="0,-1,233.907,0" Grid.Row="0" Grid.RowSpan="1" telerik:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" Width="25" d:LayoutOverrides="GridBox">
    							<Border.Visibility>
    								<Binding Path="HasHierarchy" RelativeSource="{RelativeSource TemplatedParent}">
    									<Binding.Converter>
    										<telerik:BooleanToVisibilityConverter/>
    									</Binding.Converter>
    								</Binding>
    							</Border.Visibility>
    						</Border>
    						<Border x:Name="PART_HierarchyIndentPresenter" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0" Grid.Column="4" Grid.Row="1" telerik:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" Width="25" Margin="0,0,233.907,0" d:LayoutOverrides="GridBox">
    							<Border.Visibility>
    								<Binding Path="HasHierarchy" RelativeSource="{RelativeSource TemplatedParent}">
    									<Binding.Converter>
    										<telerik:BooleanToVisibilityConverter/>
    									</Binding.Converter>
    								</Binding>
    							</Border.Visibility>
    							<Border BorderBrush="#004B4B4B" BorderThickness="0" Background="{StaticResource Common_Background}" />
    						</Border>
    					</telerik:SelectiveScrollingGrid>
    				</ControlTemplate>
  2. Yovko
    Yovko avatar
    8 posts
    Member since:
    Aug 2012

    Posted 17 Jul 2013 Link to this post

    To answer my own question:
    CanUserFreezeColumns="False" removes this.
    But still I want to now where it is, in case I want to style it. :)
  3. UI for WPF is Visual Studio 2017 Ready
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 17 Jul 2013 Link to this post

    Hello,

    This element is a "FrozenColumnsSplitter". I would suggest you to check this forum thread where a similar topic has been discussed.
     

    Regards,
    Didie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top