Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Columnwidth as percent
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Columnwidth as percent

 Post Reply Post Reply
Author
Message
rune View Drop Down
Newbie
Newbie


Joined: 19 September 2010
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote rune Quote  Post ReplyReply Direct Link To This Post Topic: Columnwidth as percent
    Posted: 19 September 2010 at 3:26pm
Hey I am wondering if there is possible to set column width as a percent value of the controls width.

The reason I want to do this is that we are replacing a older list component with ReportControl witch use percent to define column width and I am hoping to reuse all those settings.

I have tried with calculating column width manually but it didn't work.

Does anybody have any tip?
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 21 September 2010 at 4:42am
Hi,
 
Did you set AutoColumnSizing = True?
 
 
 
With Me.wndReportControl
        .AutoColumnSizing = True
        With .Columns
            With .Add(.Count, "Col 1", Me.wndReportControl.Width / 100 * 10, True) 'Should be +/- 10%, right?
                '.blabla = ...
            End With
        End With
End With
 
If you set AutoColumnSizing = True, RC will resize column according the "original width" you assigned. If you don't allow columnsizing it will be the same percentage all the way.
 
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
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.172 seconds.