Print Page | Close Window

AutoSizeMode

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=13396
Printed Date: 14 November 2024 at 9:46pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: AutoSizeMode
Posted By: mar72vin
Subject: AutoSizeMode
Date 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#



Replies:
Posted By: Aaron
Date 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....


Posted By: mar72vin
Date 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#


Posted By: Aaron
Date 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....



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