PDA

View Full Version : Page.SetFocus()


Samio
05-02-2009, 01:51 PM
Hi.
Grid Object isn't supported by Page.SetFocus().
i think it is a object similar input, combobox and other
and need focus action.:D

holtgrewe
05-04-2009, 02:24 PM
The intellisense doesn't indicate it, but try Page.SetFocus("Grid1") followed by Grid.SetFocusCell("Grid1", Row, Column) and it should work for you.

hth

Samio
05-05-2009, 05:47 AM
Hi. Don't Work!:huh

holtgrewe
05-05-2009, 08:22 AM
Samio
Here's a quick example that sets and increments the focus in a grid object.
The button 'On Click' will set the page focus and the grid cell focus.
If this is not what you're looking for then I mis-understood what you are trying to accomplish.

hth

MicroByte
05-05-2009, 09:28 AM
Grid Object isn't supported by Page.SetFocus().

you need to ensure a cell has been previously selected

if no selection is made in the grid and you set focus to it then it does not seem to accecpt focus at all, if there is a selected cell and you set focus to it then it seems to accecpt the focus and keyboard up/down keys scroll the list as expected ...

Samio
05-05-2009, 04:12 PM
Hi.
Very Very Thanks Dear holtgrewe and MicroByte.:p
it is ok!:yes