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
Ā 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
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
ListView1.Columns[0].Width
ListView1.Columns[1].Width
DesignTime solution:
Using ColumnEditor and set the property value Width in the Object Inspector.
I did try both methodts and they work.
Regards,
esoftbg
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.
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.
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.
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
column-resizing is already implmented
meikl ;-)