Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent user from moving column-headers on ListView 1

Status
Not open for further replies.

DotNetter

Programmer
May 19, 2005
194
US
Is there a way to prevent a user from moving column-headers in a ListView? I don't want to disable the control, because the colors (and my ListViewItem images) get all grayed-out.

Thanks!
Dot
 
There are two properties that might be of interest:

AllowColumnReorder which I think is the one you are after (true lets users change position of columns, false doesn't)

HeaderStyle:
Clickable, NonClickable and None
None - obviously no column header, the other two are self explanatory BUT both allow column resizing


Hope this helps.

[vampire][bat]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top