Print Page | Close Window

Single Cell Selection

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
Printed Date: 30 March 2020 at 9:58am

Topic: Single Cell Selection
Posted By: DuMa
Subject: Single Cell Selection
Date Posted: 21 May 2019 at 7:24am

I integrated the Report Control in our Software and I am looking for a way to configure the control like when you click on a cell that not the whole row becomes selected and highlighted but only the clicked cell gets selected.

Is there any way to configure the Report Control like this?

Thank you

Posted By: BobC
Date Posted: 23 May 2019 at 12:32pm
What you are looking for is to reverse the behavior of CXTPReportControl::FocusSubItems(), and after looking through the code and docs, I didn't see a particularly convenient way to get that.

Though this would seem like a common desired behavior, so maybe I'm missing something.

Posted By: DuMa
Date Posted: 27 May 2019 at 4:08am
Alright thank you. Than I have to deal with this somehow.

But maybe you can tell me if it is possible to configure the Report Control to behave like Excel. Maybe not with single cells but with rows and when you keep the left mouse button hold down and move the cursor over the grid that all the rows you moved over get highlighted?

Posted By: BobC
Date Posted: 28 May 2019 at 11:06am
That capability is not built into the report control, so you would have to write the code. You might try using CXTPMouseMonitor, or just subclass CXTPReportControl and add your own mouse handler.

Print Page | Close Window