Click here to Skip to main content
13,056,229 members (72,901 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Am not able to drag the column header in list control whats is the issue with it??

can any one help me regarding this...
Posted 28-Apr-13 20:19pm
Jochen Arndt 29-Apr-13 3:11am
What do you mean by drag? Reordering the columns or changing the column size?

Reordering of report list columns is enabled by setting the extended style LVS_EX_HEADERDRAGDROP of the list control:
SetExtendedStyle(GetExtendedStyle() | LVS_EX_HEADERDRAGDROP);
p.uday kishore 29-Apr-13 3:28am
to change column size am unable to drag the header..
Jochen Arndt 29-Apr-13 3:45am
As far as I know the resizing feature is always enabled. But it may be disabled by two methods:

1. Removing the HDS_DIVIDERTRACK style for the header control or using a subclassed header control that did not have this flag set.

2. Handling the HDN_ITEMCHANGING notification and returning TRUE.

Did you have done one of the above?

Also, does the cursor change when moving the mouse over the dibider area?
p.uday kishore 29-Apr-13 5:12am
nothing as above two methods.and the cursor is changing bt cant drag to change..
Jochen Arndt 29-Apr-13 5:51am
I forgot one more handler:
When a HDN_BEGINTRACK handler exists and returns TRUE, tracking of the divider is prevented.

You may check whether the problem is specific to your list control or your application by adding another report list somewhere and see if it shows the same behaviour.
p.uday kishore 29-Apr-13 5:54am
that handler also not there in code anywhere.

remaining are working fine.have to check the possibilities by comparing.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170728.2 | Last Updated 29 Apr 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100