开发者

WPF ListView Headers

I was wondering, Most wpf list view the header/columns are movable. Is it possible开发者_如何学C so that we can make them non-draggable or movable at all? does anyone know what this property is called by any chance?

Thanks in advance!


MSDN is your friend ;)

  • ListView on MSDN
  • GridView on MSDN
  • GridView.AllowsColumnReorder on MSDN

Specifically, the property you're looking for is the GridView.AllowsColumnReorder

<ListView>
  <ListView.View>
    <GridView AllowsColumnReorder="true">
    <!-- content -->
    </GridView>
  </ListView.View>
</ListView>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜