Print Page | Close Window

AllowColumnResize is not working

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=24446
Printed Date: 23 November 2024 at 9:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: AllowColumnResize is not working
Posted By: aquaxys
Subject: AllowColumnResize is not working
Date Posted: 01 January 2024 at 8:45pm
I added columns

long nItem = 0;
CXTPReportColumn* pCol1 = m_lstReport.AddColumn(new CXTPReportColumn(nItem++, "money", 60, FALSE));
pCol1->GetEditOptions()->m_bAllowEdit = FALSE;
CXTPReportColumn* pCol2 = m_lstReport.AddColumn(new CXTPReportColumn(nItem++, "tax", 60, FALSE));
pCol1->GetEditOptions()->m_bAllowEdit = FALSE;
...
I set extra settings form m_Report typed CXTPReportControl
    m_Report.GetPaintManager()->m_strNoItems = "no data";
    m_Report.GetReportHeader()->AllowColumnRemove(FALSE);
    m_Report.GetReportHeader()->AllowColumnResize(TRUE);
    m_Report.GetReportHeader()->SetAutoColumnSizing(FALSE);
    m_Report.GetReportHeader()->AllowColumnSort(TRUE);
    m_Report.AllowEdit(TRUE);
    m_Report.FocusSubItems(FALSE);

    m_Report.SetGridColor(RGB(222, 222, 222));
    m_Report.SetFreezeColumnsCount(4);
m_lstReport.Populate();

the result is that columns can't be resized with resizing arrow
what factors make not resizing the report column ex>SetAutoColumnSizing(FALSE); or something




Replies:
Posted By: cpede
Date Posted: 02 January 2024 at 5:24am
Don't know if it just a mistype, but you are using m_lstReport and m_Report as the same member to the grid control?

-------------
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: aquaxys
Date Posted: 04 January 2024 at 3:56am
1st of all thank for the reply and sorry for the late reply to you 
since I solve the problem and didn't hesitate to check the post again.

yes, you are right.

but I found the cause somewhere else.

your reply really make cheer me up! THX!!!



Posted By: agontarenko
Date Posted: 04 January 2024 at 5:13am
Hello,

So problem is solved?

Regards,
Artem Gontarenko


Posted By: aquaxys
Date Posted: 04 January 2024 at 8:48pm
yes, thank you for your concern and reply



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