Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Stretching the last column
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Stretching the last column

 Post Reply Post Reply
Author
Message
LittleJK View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 April 2006
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote LittleJK Quote  Post ReplyReply Direct Link To This Post Topic: Stretching the last column
    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

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.