Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Automatic selection of a cell
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Automatic selection of a cell

 Post Reply Post Reply
Author
Message
shockwave View Drop Down
Newbie
Newbie


Joined: 29 July 2011
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote shockwave Quote  Post ReplyReply Direct Link To This Post Topic: Automatic selection of a cell
    Posted: 29 July 2011 at 4:03am
HI,

I have a application where if you push a button, a new row is added to the reportcontrol. In this row there is a column with a text that needs to be edited immediatly.

Right now, it jumps to the new row. But the text in the column doesn't appear as selected. If I type something, nothing changes in that field. If I press enter or select another row, then the typed text appears in the column.

What needs to happen is that as soon as the new row appears, the focus appears on that column and the current text in the column appears blue highlighted. If I then type something, the text in the field needs to be replaced immediatly by what i just typed in.

Right now I need to click on the field first for this to happen.

kind regards,
shockwave


Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2011 at 11:23am
Hi,
 
You might take a look at Navigator class
  • wndReportControl.Navigator.MoveToRow 
  • wndReportControl.Navigator.MoveToColumn
  • wndReportControl.Navigator.BeginEdit

If you need to know more, just ask Wink

 
*edit: You also need to set wndReportControl.FocusSubItems = True
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.