Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Column width
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Column width

 Post Reply Post Reply
Author
Message
rt15051966 View Drop Down
Newbie
Newbie


Joined: 27 May 2005
Location: Poland
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote rt15051966 Quote  Post ReplyReply Direct Link To This Post Topic: Column width
    Posted: 21 April 2006 at 3:46am

hello

I use reportcontol, I have problem with column widht , I add many column and set size for each. I use SetAutoColumnSizing (FALSE) but column width don't set in my size. How to set precize column width ?

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2006 at 3:08pm
Hi,

First you can setup a column width when creating it (in the constructor). Also you can always change it's width with SetWidth(int nNewWidth) method.

Set AutoColumnSizing to FALSE before changing. Also please ensure that your widhts are not changed by SerializeState method (like in CReportSampleView::LoadReportState).

--
WBR,
Serge
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.172 seconds.