Print Page | Close Window

[solved] FreezeColumnsCount fixes only header part

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=23009
Printed Date: 23 April 2024 at 7:10pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] FreezeColumnsCount fixes only header part
Posted By: bellmik
Subject: [solved] FreezeColumnsCount fixes only header part
Date Posted: 21 April 2016 at 6:04pm
I am trying to use the FreezeColumnsCount command.  It is freezing the columns, but when I used the slider, the column header is acting as expected but the data in the grid is has the unfrozen data slide on top of the frozen columns.  Does anyone know what might cause this? 

I have uploaded a screen shot that demonstrates the behaviour. uploads/6945/CaptureGrid2.zip" rel="nofollow - uploads/6945/CaptureGrid2.zip





Replies:
Posted By: olebed
Date Posted: 22 April 2016 at 2:55am
Hello Bellmik,

I suppose version 16.4 had these problems with frozen columns.
What version of library do you use ?
Please write  code which create and initialize ReportControl.

Regards,
 Oleksandr Lebed


Posted By: bellmik
Date Posted: 22 April 2016 at 9:31am
Hi Oleksandr thanks for the quick response,

Our version is Active X 15.1.3 (No immediate plans to upgrade)

The report control is placed on to a user control and is called from all kinds of place.  Our user control has an initialize method with is used to pass parameters to the report control.

 Public Sub InitializeReportControlExternal(ByVal oExternalDataSource As BL_ExternalDataSource,
                                               ByVal nLangID As Integer,
                                               Optional ByVal bHideTypeAhead As Boolean = False,
                                               Optional ByVal bHideExportMenu As Boolean = False,
                                               Optional ByVal sFieldsToShowAndAlign As String = "",
                                               Optional ByVal sHiddenFields As String = "",
                                               Optional ByVal bForceColumnSizing As Boolean = False,
                                               Optional ByVal bHideGroupBoxText As Boolean = False,
                                               Optional ByVal bKeepSelection As Boolean = False,
                                               Optional ByVal sPrefix As String = "",
                                               Optional ByVal sSuffix As String = "",
                                               Optional ByVal bMultiSelect As Boolean = True,
                                               Optional ByVal sTypeofGrid As String = "",
                                               Optional ByVal sHeaderText As String = "",
                                               Optional ByVal bHasCheckbox As Boolean = False,
                                               Optional ByVal bAllRemoveCols As Boolean = False,
                                               Optional ByVal oRepConStylePackage As cStyleFactory.cReportControlStylePackage = Nothing,
                                               Optional ByVal bShowGridRecordCount As Boolean = True,
                                               Optional ByVal sCustomColWidths As String = "",
                                               Optional ByVal ShowToolBar As Boolean = True,
                                               Optional ByVal oMenu As cMenuBars.DocitMenu.cMenuBars = Nothing,
                                               Optional ByVal nPassedInMenuID As Integer = -1,
                                               Optional ByVal oImageManager As AxXtremeCommandBars.AxImageManager = Nothing,
                                               Optional ByVal bHideFilterMenu As Boolean = True,
                                               Optional ByVal bHideRefreshMenu As Boolean = False,
                                               Optional ByVal bShowWaitOnLoadingData As Boolean = True,
                                               Optional ByVal nFreezeColumnCount As Integer = 0)


The last parameter is applied as follows:

 If nFreezeColumnCount > 0 Then
            RC1.AutoColumnSizing = False
            RC1.FreezeColumnsCount = nFreezeColumnCount
            RC1.FreezeColumnsAbs = True
        End If

I have tried different variations of this in different places both before and after adding rows and always get the same result.  Any ideas as to what I could try?




Posted By: olebed
Date Posted: 22 April 2016 at 10:58am
As you can see in http://www.codejock.com/products/release_notes.asp" rel="nofollow - release notes we fixed many bugs with frozen columns in ReportControl in version 17.0. Also fixed many other bugs in  ReportControl, so I can only advise to update library to version 17.2  or don't use frozen columns.



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