Print Page | Close Window

Stretching the last column

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=4134
Printed Date: 30 April 2024 at 11:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Stretching the last column
Posted By: LittleJK
Subject: Stretching the last column
Date Posted: 04 May 2006 at 12:02pm

I was wondering if there was a way to stretch the last column of a Report control to fill up the rest of the designated width of the control. In previous controls we have used, we had the ability to either set the lengths of the columns and turn on a setting to stretch the last column.  I know there is auto column property but it seems to be not working unless i'm not understanding it fully, maybe this property doesn't do what I'm thinking it should do.

ReportControl.Columns.Column(10).AutoSize = True




Replies:
Posted By: sserge
Date Posted: 04 May 2006 at 3:18pm
It does what you want, but other columns may also have AutoSize property set to True, and therefore all those columns can resize. I suggest something like following will help you to understand how it works:

For Each Column In wndReportControl.Columns
    Column.AutoSize = False
Next
wndReportControl.Columns(10).AutoSize = True


--
WBR,
Serge



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