Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a record to datawindow

Status
Not open for further replies.

061178

Programmer
Jul 7, 2005
41
GB
Hi, I've got a new screen with a lot of fields on it. I have added the functionality to add a new record and use setrowfocusindicator to use a hand to point to the first field of the new record. The only problem is is that although the cursor is on the first field of the new record the window doesn't show you the new record. The user must scroll down to it. How can I get the window to scrolldown to active recor dautomatically?
 
Try the Scrolltorow method?

Matt

"Nature forges everything on the anvil of time
 
I added scrolltorow method when the new record is added. The cursor is at the first field of the new record, but still have to scroll down. Any ideas? Thanks.
 
Use the SetColumn method.

Matt

"Nature forges everything on the anvil of time
 
I tried this before the setcolumn method doesn't scroll. My code is definately being run and the scolltorow is returning 1 (succeeded). I've tried putting this scrolltorow method is other events and tried scrollnextrow but they succeed but don't appear to do anything!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top