Print Page | Close Window

Resize column event

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=12270
Printed Date: 06 July 2024 at 3:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Resize column event
Posted By: JamesH
Subject: Resize column event
Date 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



Replies:
Posted By: ijwelch
Date Posted: 26 September 2008 at 11:21pm
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.





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net