[Solved]Prevent from column to displayed as select |
Post Reply |
Author | ||
yoavm
Groupie Joined: 15 July 2006 Status: Offline Points: 47 |
Post Options
Thanks(0)
Posted: 11 May 2015 at 5:40pm |
|
One of the column is state and has background color
according to a state (Red, Orange, Yellow, and Green). When a row selected the
selected color override the entire row including the state column. How I can
prevent the state column to get the select color?
I would like that the state column remain its original background
when the row selected. Regards. Yoav |
||
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
|
CXTPReportControl::SelectionEnable(FALSE) for disable selection at all.
OR If you want remain background only for SOME columns you should change CXTPReportRow::GetItemMetrics() method. Just move this line to the end of method
Then you can set background color and other metrics through XTP_NM_REPORT_GETITEMMETRICS event. Choose needed recordItems by pItemNotify->pDrawArgs->pColumn
|
||
yoavm
Groupie Joined: 15 July 2006 Status: Offline Points: 47 |
Post Options
Thanks(0)
|
|
Solved the problem.
Thanks. |
||
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
|
yoavm, How exactly?
|
||
yoavm
Groupie Joined: 15 July 2006 Status: Offline Points: 47 |
Post Options
Thanks(1)
|
|
By the second option. I changed CXTPReportRow::GetItemMetrics() method and added OnReportGetItemMetrics. Currently I can set the background and foreground colors of the State column when it selected. Very nice solution. Yoav |
||
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 |