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

AutoSizeMode

 Post Reply Post Reply
Author
Message
mar72vin View Drop Down
Groupie
Groupie


Joined: 20 September 2008
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote mar72vin Quote  Post ReplyReply Direct Link To This Post Topic: AutoSizeMode
    Posted: 12 February 2009 at 1:00am
Hi,
Just wondering if there is a way to set one column in the report control to auto fill the remaining width of the control? (Similar to the MS DataGridView)

i.e. all columns have a fixed width except for the last one that has a variable width that will fill the entire remaining width of the control.

thanks.

Product: Xtreme Report Control (ActiveX) version 15.1.3
Platform: Windows 7 (64bit)
Language: c#
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: 12 February 2009 at 3:55pm
Hi,
 
If you set AutoColumnSizing to True, columns will be sized to entire width of RC
 
 
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
mar72vin View Drop Down
Groupie
Groupie


Joined: 20 September 2008
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote mar72vin Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2009 at 5:32pm
thanks Aaron,
I have already tried AutoColumnSizing = true.

This resizes all columns to fit the entire width of RC.

What i need is to only resize one column to fill the remaining space of the RC.

e.g. If i have 4 columns i would like columns 1,2 and 3 to be of fixed width. I would like column 4 to fill the remaining space of the RC.

Is there any way of doing this?

thanks.
Product: Xtreme Report Control (ActiveX) version 15.1.3
Platform: Windows 7 (64bit)
Language: c#
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: 20 February 2009 at 2:36am
Hi,
 
Just set AutoSizeColumns = True and set Column.AutoSize = False, like this:
 
 
    Dim i As Integer
    Dim col As XtremeReportControl.ReportColumn
 
    For i = 0 To 3
        Set col = wndReportControl.Columns.Add(i, "Column text", 50, True )
            If col.ItemIndex < 4 Then
               col.AutoSize = False  'When resizing RC only the last column will be resized
               col.Resizable = False 'Column width will be as assigned to and nt be resizable  
            End If
    Next i
 
 
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.188 seconds.