Print Page | Close Window

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=23387
Printed Date: 22 November 2024 at 12:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Row Height
Posted By: parkersoft
Subject: Row Height
Date Posted: 13 July 2017 at 12:02pm
Hi,

I am using 17.3

How do i set the height of rows in the report control?

I have used .SetCustomDraw xtpCustomMeasureRow

and then set Height = x in the MeasureRow event. This works on initial load but the rows then revert to default height whenever the report control loses focus. This did not happen on 17.2

Thanks




Replies:
Posted By: olebed
Date Posted: 17 July 2017 at 7:15am
Hello,

I can't reproduce issue.
I have checked this with  C#.NET\ReportSample
in sub sample frmTreeView.cs  I have added
this.wndReportControl.MeasureRow += new AxXtremeReportControl._DReportControlEvents_MeasureRowEventHandler(this.wndReportControl_MeasureRow);

wndReportControl.SetCustomDraw(XTPReportCustomDraw.xtpCustomMeasureRow);

private void wndReportControl_MeasureRow(object sender, AxXtremeReportControl._DReportControlEvents_MeasureRowEvent e)
{
     e.height = 10;
}
on that form is OK button. When I switch focus with Tab  from ReportControl to button Ok  then rows still 10 px in height. 

Can you provide sample application where I can see this issue ?

Regards,
 Oleksandr Lebed


Posted By: parkersoft
Date Posted: 17 July 2017 at 7:31am
In the Samples/ReportControl/VB/ReportSample project

frmMain.Load

Add:

wndReportControl.SetCustomDraw xtpCustomMeasureRow

and in the MeasureRow event add:
Height=40

comment out:
wndReportControl.SetCustomDraw xtpCustomBeforeDrawRow

Then place any other control on the form that can get focus.

Run the project and tab to the other control. The rows will change size.

Thanks


Posted By: olebed
Date Posted: 17 July 2017 at 8:04am
unfortunately  I can't reproduce. Have you tried v18.0 beta ?

Are you sure that there are not any other changes in ReportSample ?



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