Resize column event |
Post Reply |
Author | |
JamesH
Senior Member Joined: 01 December 2004 Status: Offline Points: 149 |
Post Options
Thanks(0)
Posted: 26 September 2008 at 7:01pm |
Hello, I would like to display strings formatted differently depending on the column width. How do I tell when a column has been resized so I can reformat the strings in that column?
Thanks,
- James
|
|
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
|
There's a ColumnWidthChanged event according to the docs. But you will probably find this doesn't help you.
Try using the BeforeDrawRow event which allows you to change the text and appearance of any 'cell' before it's painted. The DrawItem event provides more low-level custom drawing . To have these events fired you'll need to use the SetCustomDraw method. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |