Print Page | Close Window

[SOLVED] Custom Row Height

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


Topic: [SOLVED] Custom Row Height
Posted By: Suicidal
Subject: [SOLVED] Custom Row Height
Date Posted: 02 September 2011 at 12:36pm
Hello,

is there any way to customize row height?





Replies:
Posted By: Xander75
Date Posted: 08 September 2011 at 9:38am
Yes,

Using the following code:

ReportControl.PaintManager.FixedRowHeight = False
ReportControl.SetCustomDraw xtpCustomMeasureRow

This means the ReportControl can now change the row height for all rows or a given row or number of rows.

Private Sub rpcGrid_MeasureRow(ByVal Row As XtremeReportControl.IReportRow, ByVal hdc As stdole.OLE_HANDLE, ByVal Width As Long, Height As Long)
    If (Row.Index = 5 Or Row.Index = 10) Then Height = 42
End Sub

The sample above is only changing the height on rows 5 & 10, remove this and it will change the height for all rows.



-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)


Posted By: Ymer
Date Posted: 22 February 2013 at 8:46pm
Hi, can you help me pleas how to 

Height

headerrows.



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