How set visibility of Header Row to false

4 posts, 1 answers
  1. MASSIMILIANO BARBAGLIA
    MASSIMILIANO BARBAGLIA avatar
    21 posts
    Member since:
    Apr 2018

    Posted 26 Sep 2018 Link to this post

    How i can set to false the header row visibility? I dont' want use header row.

     

    Thanks

  2. Answer
    Lance | Manager Technical Support
    Admin
    Lance | Manager Technical Support avatar
    1180 posts

    Posted 26 Sep 2018 Link to this post

    Hello Massimiliano,

    There is no explicit HeaderRow style to set this, rather you want to style column headers instead.  You can learn more about the HeaderStyle properties in the Columns Styling article (be sure to read the green notes). See my other forum post with an example that achieves this.

    If you have any trouble implementing your custom style, please open a support ticket here and share your code with the DataGrid development team so that can assist further.

    Regards,
    Lance | Tech Support Engineer, Sr.
    Progress Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. MASSIMILIANO BARBAGLIA
    MASSIMILIANO BARBAGLIA avatar
    21 posts
    Member since:
    Apr 2018

    Posted 27 Sep 2018 in reply to Lance | Manager Technical Support Link to this post

    It's work but i've but not in all my columns. In an oreder column i I see the arrow indicating the sorting (i try to set TextColor for this header column with white (the arrow is black) but it's not work. I also insert OptionsButtonTextColor="Transparent" for hide the dots at the end of each column

     

    This is my grid :

    <telerikDataGrid:RadDataGrid x:Name="gridTotal" 
                                         Margin="60,0,60,0"
                                         SelectionMode="Single" 
                                         SelectionUnit="Row" 
                                         UserFilterMode="Disabled" 
                                         UserGroupMode="Disabled" 
                                         UserSortMode="None" 
                                         AutoGenerateColumns="False" 
                                         ItemsSource="{Binding TransactionResponseModelForGrid}" 
                                         Grid.Row="10" 
                                         Grid.Column="0" 
                                         Grid.ColumnSpan="4" 
                                         Grid.RowSpan="12" 
                                         SelectionChanged="grid_SelctionChanged" >
                <telerikDataGrid:RadDataGrid.SortDescriptors>
                    <common:PropertySortDescriptor PropertyName="IssuingDate" SortOrder="Descending" />
                </telerikDataGrid:RadDataGrid.SortDescriptors>
                <telerikDataGrid:RadDataGrid.SelectionStyle>
                    <telerikDataGrid:DataGridBorderStyle BackgroundColor="LightGray" BorderColor="Black" BorderThickness="1" />
                </telerikDataGrid:RadDataGrid.SelectionStyle>
                <telerikDataGrid:RadDataGrid.Columns>
                    <telerikDataGrid:DataGridTextColumn PropertyName="Id" HeaderText="TRANSACTION ID" Width="150" SizeMode="Fixed" >
                        <telerikDataGrid:DataGridTextColumn.CellDecorationStyle>
                            <telerikDataGrid:DataGridBorderStyle BorderThickness="1, 0.5, 0.5, 0.5" BorderColor="White" />
                        </telerikDataGrid:DataGridTextColumn.CellDecorationStyle>
                        <telerikDataGrid:DataGridTextColumn.HeaderStyle>
                            <telerikDataGrid:DataGridColumnHeaderStyle BorderColor="Transparent"
                                                BorderThickness="0"
                                                BackgroundColor="Transparent"
                                                OptionsButtonTextColor="Transparent"
                                                TextMargin="0"/>
                        </telerikDataGrid:DataGridTextColumn.HeaderStyle>
                        <telerikDataGrid:DataGridTextColumn.HeaderContentTemplate>
                            <DataTemplate>
                                <Grid Padding="0" Margin="0" />
                            </DataTemplate>
                        </telerikDataGrid:DataGridTextColumn.HeaderContentTemplate>
                        <telerikDataGrid:DataGridTextColumn.CellContentStyle>
                            <telerikDataGrid:DataGridTextCellStyle TextColor="White" HorizontalTextAlignment="Center"
                                                           FontSize="12" 
                                                             />
                        </telerikDataGrid:DataGridTextColumn.CellContentStyle>
                    </telerikDataGrid:DataGridTextColumn>
                    <telerikDataGrid:DataGridDateColumn PropertyName="IssuingDate" 
                                                HeaderText="ISSUING DATE" Width="110" SizeMode="Fixed" CellContentFormat="{}{0:dd/MM/yyyy}" >
                        <telerikDataGrid:DataGridTextColumn.CellDecorationStyle>
                            <telerikDataGrid:DataGridBorderStyle BorderThickness="1, 0.5, 0.5, 0.5" BorderColor="White" />
                        </telerikDataGrid:DataGridTextColumn.CellDecorationStyle>
                        <telerikDataGrid:DataGridTextColumn.HeaderStyle>
                            <telerikDataGrid:DataGridColumnHeaderStyle BorderColor="Transparent"
                                                OptionsButtonTextColor="Transparent"
                                                BorderThickness="0"
                                                BackgroundColor="Transparent" TextColor="White"                                          
                                                TextMargin="0"/>
                        </telerikDataGrid:DataGridTextColumn.HeaderStyle>
                        <telerikDataGrid:DataGridTextColumn.HeaderContentTemplate>
                            <DataTemplate>
                                <Grid Padding="0" Margin="0" />
                            </DataTemplate>
                        </telerikDataGrid:DataGridTextColumn.HeaderContentTemplate> 
                      
                        <telerikDataGrid:DataGridDateColumn.CellContentStyle>
                            <telerikDataGrid:DataGridTextCellStyle TextColor="White"  FontSize="12" HorizontalTextAlignment="Center"  >
                            </telerikDataGrid:DataGridTextCellStyle>
                        </telerikDataGrid:DataGridDateColumn.CellContentStyle>
                    </telerikDataGrid:DataGridDateColumn>

                </telerikDataGrid:RadDataGrid.Columns>
            </telerikDataGrid:RadDataGrid>

  4. MASSIMILIANO BARBAGLIA
    MASSIMILIANO BARBAGLIA avatar
    21 posts
    Member since:
    Apr 2018

    Posted 27 Sep 2018 in reply to MASSIMILIANO BARBAGLIA Link to this post

    I solved using the property IndicatorColor="Transparent".
Back to Top