Remove selection from focused row |
Post Reply |
Author | |
mlatona
Senior Member Joined: 19 April 2005 Location: Germany Status: Offline Points: 124 |
Post Options
Thanks(0)
Posted: 01 September 2005 at 8:38am |
How can I remove the selection and the rectangle from the focused row? Following code don`t works (VB6): Set ReportControl.FocusedRow = Nothing |
|
nighthawk
Senior Member Joined: 11 June 2004 Status: Offline Points: 167 |
Post Options
Thanks(0)
|
As far as I can tell, there unfortunately isn't a single setting to
disable being able to select records. I've come up with my own
way.
The most effective way to not make anything rows selectable is by defining a mouse down event and setting the focus of another control: Private Sub ReportControl_MouseDown(Button As Integer, Shift As Integer, X As Long, Y As Long) SomeOtherControl.SetFocus End Sub The "SomeOtherControl" can be just about any other visible control on the form. If you just wanted to hide the selection box, you could do: ReportControl.PaintManager.HighlightBackColor = ReportControl.PaintManager.BackColor ReportControl.PaintManager.HighlightForeColor = ReportControl.PaintManager.ForeColor The focus rectangle will still appear however. |
|
mlatona
Senior Member Joined: 19 April 2005 Location: Germany Status: Offline Points: 124 |
Post Options
Thanks(0)
|
When I fill the report control and show the data with the populate method, the focused row property have an undefined (nothing) value and no row have the focus. When I set the focusedrow property to nothing, I will this behaviour that no row have the focus. And not with the workaround, that I set the highlightbackcolor property or delete the focusedrow from the selectedrows property.
|
|
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 |