Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 6 of 6

Thread: Page.SetFocus()

  1. #1
    Join Date
    Nov 2006
    Location
    Tehran
    Posts
    176

    Page.SetFocus()

    Hi.
    Grid Object isn't supported by Page.SetFocus().
    i think it is a object similar input, combobox and other
    and need focus action.

  2. #2
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778

    should work anyway...

    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

  3. #3
    Join Date
    Nov 2006
    Location
    Tehran
    Posts
    176
    Hi. Don't Work!

  4. #4
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    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
    Attached Files

  5. #5
    Join Date
    Apr 2009
    Posts
    277
    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 ...

  6. #6
    Join Date
    Nov 2006
    Location
    Tehran
    Posts
    176
    Hi.
    Very Very Thanks Dear holtgrewe and MicroByte.
    it is ok!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts