![]() |
AutoSizeMode |
Post Reply ![]() |
Author | |
mar72vin ![]() Groupie ![]() Joined: 20 September 2008 Status: Offline Points: 18 |
![]() ![]() ![]() ![]() ![]() 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# |
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
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.... |
|
![]() |
|
mar72vin ![]() Groupie ![]() Joined: 20 September 2008 Status: Offline Points: 18 |
![]() ![]() ![]() ![]() ![]() |
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# |
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
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.... |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |