Print Page | Close Window

How to set FocusedRow to NOTHING?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=7873
Printed Date: 08 July 2025 at 10:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to set FocusedRow to NOTHING?
Posted By: Jebo
Subject: How to set FocusedRow to NOTHING?
Date Posted: 26 August 2007 at 10:44am
I need to set the ReportControl to non focused row.
 
SET repctrl.FocusedRow = NOTHING  doesn't work!
 
Setting the Highlight-Color to Report-BackColor is also no solution, because there is also a rectangle arround a focused row!
 
Please what is the right way?



Replies:
Posted By: nighthawk
Date Posted: 26 August 2007 at 8:52pm
I brought this up a while ago but never got a response.  My workaround is to set the highlight color to the report backcolor AND in the ReportControl_MouseDown() event, I manually call the .SetFocus function on another control on the form.  Once the ReportControl loses focus, the focus rectangle will go away.



Posted By: Jebo
Date Posted: 27 August 2007 at 4:20am
THX, i go this way...
 
Dim rec As ReportRecord
With ReportControl
        Set rec = .Records.Add()
        rec.AddItem ""
        .Populate
        .FocusedRow = .Rows.FindRow(rec)
        .Records.RemoveAt rec.Index
        .Populate
End With
 
...but both are only workarounds.
Hope that Codejock will give us in one of the next releases the possibility to Set RepCntrl = Nothing.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net