Print Page | Close Window

Report Control Cell Border

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=23600
Printed Date: 24 April 2024 at 7:34am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Report Control Cell Border
Posted By: umair
Subject: Report Control Cell Border
Date Posted: 07 March 2018 at 4:05am
Hello,
How can change the border color of a cell in Report Control ?
Please help.



Replies:
Posted By: olebed
Date Posted: 07 March 2018 at 3:52pm
m_wndReport.GetPaintManager()->SetGridColor(RGB(255,0,0));


Posted By: umair
Date Posted: 07 March 2018 at 11:33pm
Thank You Oleksandr, the above logic will change all cell color in report control. But I want to change the color of a(or some) specific cell.


Posted By: umair
Date Posted: 13 March 2018 at 4:00am
Hello,
How can change the border color of a specific cell in Report Control ?
Please help.


Posted By: olebed
Date Posted: 13 March 2018 at 6:00am
Hello,
It is impossible in current implementation. To implement this feature you need add some conditions to drawing common grid. And add some members to ReportRecordItem  to save desired borders. Also some conditions to drawing border between two cells which have borders with different types. Or change this joint border to one type. See this call stack:

CXTPReportSection::Draw() > CXTPReportControl::DrawRows() > CXTPReportRow::Draw() > CXTPReportRow::DrawItemGrid()

Regards,
 Oleksandr Lebed



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