Link to home
Start Free TrialLog in
Avatar of pradeep_pc
pradeep_pc

asked on

List View Colum header

Hai Experts,

Ā  I have used a list view componenet with viewstyle 'vsReport' and showcolumheaders property 'True' in an application. I want to change the width of the column header on resizing the column header using mouse. How do I do this? Is there any event for colum header resizing? Do I need to handle any windows message for this? Please help....

regards

Pradeep
Avatar of kretzschmar
kretzschmar
Flag of Germany image

you have nothing else to do,
column-resizing is already implmented

meikl ;-)
RunTime solution:
ListView1.Columns[0].Width := 128;
ListView1.Columns[1].Width := 256;

DesignTime solution:
Using ColumnEditor and set the property value Width in the Object Inspector.

I did try both methodts and they work.

Regards,
esoftbg
Avatar of pradeep_pc
pradeep_pc

ASKER

hai esoftbg,

I want to set the coulumn width at runtime on resizing the column header using mouse.I couldn't see any event for clolumn header resizing.
hai esoftbg,

I want to set the coulumn width at runtime on resizing the column header using mouse.I couldn't see any event for clolumn header resizing.
what should happen on this event?
Hmmm...I don't understand why you would want an event...

If this is just to prevent the user from resizing the Column too small or too large, just use the MinWidth, MaxWidth properties on the Columns property page...=)

Regards
//raidos
ASKER CERTIFIED SOLUTION
Avatar of steve_hsk
steve_hsk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial