Prevent the user from changing tables columns width

Hi

How can I prevent the user from changing tables columns width for "ListView" and "DataGrid"

Thanks




Answer this question

Prevent the user from changing tables columns width

  • marthew

    I tried to set the Nonclickable property of the ListView it just disable the click event when clicking the columns header but it still let the user change the columns width.

    In the DataGrid want to see the column titles just not let the user cghange the width of the columns.

    So sorry it did not help

    Thanks anyway



  • Evan Mulawski

    How can I prevent the user from changing tables columns width for "ListView" and "DataGrid"



  • Pockey

    Listview: ListView.HeaderStyle = ColumnHeaderStyle.Nonclickable (or None)

    DataGrid: DataGrid.ColumnHeadersVisible = false

    Unfortunately with DataGrid control you can only hide the column headers - you cannot disable them while keeping them visible.



  • Prevent the user from changing tables columns width