Print Page | Close Window

Automatic selection of a cell

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=18747
Printed Date: 25 February 2025 at 10:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Automatic selection of a cell
Posted By: shockwave
Subject: Automatic selection of a cell
Date 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





Replies:
Posted By: Aaron
Date 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....



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