Print Page | Close Window

Grid row without children not indented (CJ 24.2)

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=24602
Printed Date: 13 September 2025 at 7:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Grid row without children not indented (CJ 24.2)
Posted By: Heath
Subject: Grid row without children not indented (CJ 24.2)
Date Posted: 11 September 2025 at 4:02am
Following migration from CJ 24.1 to 24.2, the grid ident for rows without children are no longer indented to align with rows with children (with the expand icon). 

The release notes say...

Text indent computation fixed for a group row with no icon
Default tree item indentation fixed in Grid control

I used the fix below where pGridCtrl is a pointer to CXTPGridControl.

CXTPGridPaintManager* pGridPaintManager = pGridCtrl->GetPaintManager();
pGridPaintManager->m_nTreeTextIndent = 25;
pGridPaintManager->m_nTreeTextIndentRowChildren = 25;

I assume this is a bug as the default has been changed from the behaviour seen in many previous releases.

Regards,
Heath



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