Saving columns |
Post Reply |
Author | ||
Staffan V
Newbie Joined: 29 March 2007 Location: Sweden Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 29 March 2007 at 7:28am |
|
I have set up a CXTPReportControl and populated the columns (hiding
some) and setting their widths, titles and so on. The user may then
move around the columns, show some, hide some and change their widths.
Is there a way to save the altered settings so I can restor them the
next time the user opens the control?
|
||
Staffan V
Newbie Joined: 29 March 2007 Location: Sweden Status: Offline Points: 8 |
Post Options
Thanks(0)
|
|
At first I used
CXTPReportColumns *pReportColumns = m_ReportCtrl.GetColumns(); for( int f = 0; f < NR_OF_COLUMNS; f++ ) { CXTPReportColumn *pReportColumn = pReportColumns->GetAt(f); pReportColumn->SetVisible(false or true); pReportColumn->SetWidth( the width ); } then I saved them in a simmilar way. The problem is that the user may move around the colums so the old column 3 is now column 5 so that way doesn't work at all. |
||
Staffan V
Newbie Joined: 29 March 2007 Location: Sweden Status: Offline Points: 8 |
Post Options
Thanks(0)
|
|
Isn't there a way to save what columns are shown and their width?
Ok, what about how to get the data and save it myself? Hello? Anybody? |
||
Staffan V
Newbie Joined: 29 March 2007 Location: Sweden Status: Offline Points: 8 |
Post Options
Thanks(0)
|
|
Ah, I managed to figure it out by myself. It was a bit easier than I thought.
All I did was
to save and
to load. |
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |