Focal Point
Select a grid cell

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6131087331

May 27, 2004, 09:08 AM
Håkan
Select a grid cell
Hi all,

is there a way of making a cell selected upon entry of a read-write grid, so the user does not have to double-click in the cell? WebFOCUS Dev Studio 4.3.6 SP6.

Tia,

H�kan
May 27, 2004, 12:19 PM
Bob Jude Ferrante
Sure... in the maintain developing applications manual there is pretty complete doc on the read/write grid.

you need the GotoCell function.

cheers
May 27, 2004, 01:55 PM
Håkan
Bob,

what else do I have to do? The GotoCell function does not seem to do the job. Do I have to use some other function as well?

/H�kan
May 28, 2004, 07:03 PM
Bob Jude Ferrante
This information's in the online help and in the doc...

You might be having a problem because:

1. it's gotta *not* be a maintain case; rather it's typically a vbscript function.

2. You should call the redrawall function right after to apply the change.

sample code, placed in an onclick button event handler formatted as vbscript:

Form1.Grid1.GoToCell 2, 5
Form1.Grid1.RedrawAll

Hope this helps!

bob
June 03, 2004, 07:34 PM
Maintain Wizard
This is the code that we use to make the grid cell editable without having to double click:

Place the following Javascript code in the focus event handler on the grid:
1 Form1.Grid1.StartEdit();
2 Set the tab order to go from a button to the grid.

I hope this helps.