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

Removing the Drag Feature from the Column Headers

Sort Posts: Previous Next
  •  05-07-2008, 6:04 PM Post no. 12054

    Removing the Drag Feature from the Column Headers

    I am using the Xceed data grid in it's simplest form... no grouping, no editing, just row selection and column sorting. However, I can still drag the column headers around (left mouse click, hold, and drag). They don't do anything but it is a feature I would like to turn off so my user's won't be confused. How can I disable the dragging feature of the column headers?

    Thanks,

    Nicole

    Filed under:
  •  05-07-2008, 10:03 PM Post no. 12058 in reply to 12054

    Re: Removing the Drag Feature from the Column Headers

    Set the ColumnManagerRow's AllowColumnReorder property to false.

    <Style TargetType={x:Type xcdg:ColumnManagerRow}>
       <Setter Property="AllowColumnReorder" Value="False"/>
    </Style>


    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
  •  05-08-2008, 9:47 AM Post no. 12082 in reply to 12058

    Re: Removing the Drag Feature from the Column Headers

    I already have that in my code and I am still able to left click on the any column header and drag it around - any other suggestions???

     

    <xcdg:DataGridControl.View>

    <xcdg:TableView ShowFixedColumnSplitter="False" ShowRowSelectorPane="False" HorizontalGridLineBrush="{DynamicResource Dark Grey}" VerticalGridLineBrush="{DynamicResource Dark Grey}" UseDefaultHeadersFooters="False" ShowScrollTip="False">

    <xcdg:TableView.FixedHeaders>

    <DataTemplate>

    <xcdg:ColumnManagerRow AllowSort="True" AllowColumnReorder="False"/>

    </DataTemplate>

    </xcdg:TableView.FixedHeaders>

    <!--<xcdg:TableView.Theme>

    <xcdg:Office2007SilverTheme/>

    </xcdg:TableView.Theme>-->

    </xcdg:TableView>

    </xcdg:DataGridControl.View>

  •  05-08-2008, 10:12 AM Post no. 12087 in reply to 12082

    Re: Removing the Drag Feature from the Column Headers

    Unfortunately, you can just prevent the reordering of the columns. There is no method that will allow you prevent them from actually being dragged.


    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.