locked
Not allowing GridViewColumn to be resized RRS feed

  • Question

  • Is there a way to prevent a user from resizing a GridViewColumn?  I have a GridViewColumn displaying icons which I want to prevent the user from being able to resize.

    TIA.
    Thursday, May 21, 2009 8:51 PM

Answers

  • You can do this:

    <GridViewColumn DisplayMemberBinding="{Binding Property}">
        <GridViewColumnHeader Content="Title" IsHitTestVisible="False" />
    </GridViewColumn>
    • Proposed as answer by Tao Liang Tuesday, May 26, 2009 2:32 AM
    • Marked as answer by Tao Liang Wednesday, May 27, 2009 3:31 AM
    Thursday, May 21, 2009 9:57 PM