Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Hiding top (GroupByControl)

Sort Posts: Previous Next
  •  06-29-2008, 2:46 PM Post no. 13294

    Hiding top (GroupByControl)

    i wnat to hide the top bar "GroupByControl"... when im not using themes i simply remove it with

                             <xcdg:DataGridControl.Resources>
                                <ResourceDictionary>
                                    <Style TargetType="{x:Type xcdg:GroupByControl}">
                                        <Setter Property="Visibility" Value="Collapsed"/>
                                    </Style>
                                </ResourceDictionary>
                            </xcdg:DataGridControl.Resources>

     

    however when im using my own custom theme i cant remove it... even though i set

      <Style x:Key="tableViewCGDataGridGroupByControlStyle"
              TargetType="xcdg:GroupByControl">

            <Setter Property="Visibility" Value="Collapsed"/>

     there is still a bar at the top of my grid

  •  07-01-2008, 12:13 PM Post no. 13343 in reply to 13294

    Re: Hiding top (GroupByControl)

    try setting

    ....<xcdg:TableView UseDefaultHeadersFooters="False">.....

  •  07-01-2008, 2:34 PM Post no. 13345 in reply to 13343

    Re: Hiding top (GroupByControl)

    Hi,

    Try using the following example. What it does is first of all remove default headers as suggested by Chris also, and then it adds a column Manager row. 

    <xcdg:DataGridControl x:Name="OrdersGrid" > 
        <xcdg:DataGridControl.View> 
          <xcdg:TableView UseDefaultHeadersFooters="False"> 
            <xcdg:TableView.FixedHeaders> 
              <DataTemplate> 
                <xcdg:ColumnManagerRow/> 
              </DataTemplate> 
            </xcdg:TableView.FixedHeaders> 
          </xcdg:TableView> 
        </xcdg:DataGridControl.View> 
    </xcdg:DataGridControl>

    Hope it works as per your requirements.

    Regards,


    Abdullah Ansari
    Senior Software Engineer
    Outworks Solutions Private Limited

    Everything is okay in the end. If its not okay, then its not the end.
  •  09-30-2008, 4:44 AM Post no. 15731 in reply to 13294

    Re: Hiding top (GroupByControl)

    Is there a way to do this from C# code ?

     

    Kr 

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.