Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - AllowColumnResize is not working
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

AllowColumnResize is not working

 Post Reply Post Reply
Author
Message
aquaxys View Drop Down
Groupie
Groupie
Avatar

Joined: 19 December 2022
Location: Seoul
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote aquaxys Quote  Post ReplyReply Direct Link To This Post Topic: AllowColumnResize is not working
    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

Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (1) Thanks(1)   Quote cpede Quote  Post ReplyReply Direct Link To This Post 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++)
Back to Top
aquaxys View Drop Down
Groupie
Groupie
Avatar

Joined: 19 December 2022
Location: Seoul
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote aquaxys Quote  Post ReplyReply Direct Link To This Post 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!!!

Back to Top
agontarenko View Drop Down
Admin Group
Admin Group


Joined: 25 March 2016
Status: Offline
Points: 292
Post Options Post Options   Thanks (1) Thanks(1)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post Posted: 04 January 2024 at 5:13am
Hello,

So problem is solved?

Regards,
Artem Gontarenko
Back to Top
aquaxys View Drop Down
Groupie
Groupie
Avatar

Joined: 19 December 2022
Location: Seoul
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote aquaxys Quote  Post ReplyReply Direct Link To This Post Posted: 04 January 2024 at 8:48pm
yes, thank you for your concern and reply
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.110 seconds.