Home Forums WPF controls Xceed DataGrid for WPF Hide Group Level Indicator Panel

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #24279 |

    Hi all,
    I´m kinda new to XAML, maybe i´m doing something wrong.
    I don´t want to use the Header in which is written Drag a Column header here…

    So i´m doing the folowing:

    <xcdg:DataGridControl x:Name=”dtgDados”>
    <xcdg:DataGridControl.Resources>
    <Style TargetType=”{x:Type xcdg:GroupLevelIndicatorPane}”>
    <Setter Property=”Visibility” Value=”Collapsed” />
    <Setter Property=”ShowIndicators” Value=”False” />
    </Style>
    <Style TargetType=”{x:Type xcdg:TableView}”>
    <Setter Property=”Theme” Value=”Aero.NormalColor” />
    <Setter Property=”ShowRowSelectorPane” Value=”False” />
    </Style>
    </xcdg:DataGridControl.Resources>

    </xcdg:DataGridControl>

    The styles for the TableView are working ok, but the GroupLevelIndicatorPanel is still appearing. How do I make it disappear?

    I´m doing the databind in C# codebehind.
    For that i´m using the ItemsSource property of the DataGrid.

    Thanks for now.

    Imported from legacy forums. Posted by Ricardo (had 6346 views)

    Xceed Support
    Member
    Post count: 5658

    Even if you hide the GroupLevelIndicators, the pane will remain. To hide the pain, set its Visibility property to Collapsed.

    <code>
    <Style TargetType=”{x:Type xcdg:GroupLevelIndicatorPane}”>
    <Setter Property=”Visibility” Value=”Collapsed”/>
    </Style>
    </code>

    Imported from legacy forums. Posted by Jenny [Xceed] (had 382 views)

    User (Old forums)
    Member
    Post count: 23064

    If you look in my post, you will see that i´m already doing that.

    Imported from legacy forums. Posted by Ricardo (had 633 views)

    Xceed Support
    Member
    Post count: 5658

    I reread your thread and noticed that you said that you want to remove the element that says “drag a column here…”. This is not the GroupLevelIndicatorPane but rather the GroupByControl which is contained in the FixedHeaders of the grid (by default).

    If you want to remove, you can do the following:

    <code>
    <xcdg:DataGridControl.View>
    <xcdg:TableView>
    <xcdg:TableView.FixedHeaders>
    <xcdg:ClearHeadersFooters/>
    <DataTemplate>
    <xcdg:ColumnManagerRow/>
    </DataTemplate>
    </xcdg:TableView.FixedHeaders>
    </xcdg:TableView>
    </xcdg:DataGridControl.View>
    </code>

    Imported from legacy forums. Posted by Jenny [Xceed] (had 535 views)

    User (Old forums)
    Member
    Post count: 23064

    Try this:
    <Style TargetType=”{x:Type xcdg:GroupByControl}”>
    <Setter Property=”AllowGroupingModification” Value=”False”/>
    <Setter Property=”Visibility” Value=”Collapsed”/>
    </Style>
    Good luck! Lena

    Imported from legacy forums. Posted by Lena (had 380 views)

    User (Old forums)
    Member
    Post count: 23064

    How do the same in C# ?

    Thanks

    Imported from legacy forums. Posted by Bernard (had 987 views)

    User (Old forums)
    Member
    Post count: 23064

    Ok, I found an example in SolidFoundation sample.

    Imported from legacy forums. Posted by Bernard (had 5266 views)

    User (Old forums)
    Member
    Post count: 23064

    This is too old but “I don´t want to use the Header in which is written Drag a Column header here..” google search firs result ..

        <Grid x:Name=”LayoutRoot”>
            <sldg:DataGridControl DefaultHeadersFooters=”ColumnManagerRow”>
                <sldg:DataGridControl.Columns>
                    <sldg:Column FieldName=”Kod” Width=”30″/>

    This is solution for that like question (Silverlight Data Grid )

    Thanks

    Imported from legacy forums. Posted by Murat (had 1339 views)

    vikas.jain
    Participant
    Post count: 2

    I used the below code. It is working fine on windows 7 but when I change the theme to Windows Classic, some empty gray space is displyed for this Group By Section. I want to completely hide this section.

    <Style TargetType=”{x:Type xcdg:GroupByControl}”>
    <Setter Property=”Visibility” Value=”Collapsed”/>
    </Style>

    Please help me to fix this issue on Windows Classic theme.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.