how to set focus on an edititem in a gridview

Discussion in 'ASP .Net Datagrid Control' started by Roberto Kohler, Aug 6, 2006.

  1. I have a gridview with an edititem template that contains a textbox.

    When I change to edit mode, I would like the focus to be set to the textbox
    of the row I selected to edit. The problem I have is that even though the
    page is displayed correctly, I need to scroll down to find the row I
    selected so I can change the value in the textbox.

    How do I set focus to the textbox of the row I selected ?

    Any help would be appreciated.
     
    Roberto Kohler, Aug 6, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dariusz Tomon

    GridView as EditItem Template

    Dariusz Tomon, Apr 4, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    480
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=
    Apr 5, 2007
  2. Jason
    Replies:
    1
    Views:
    2,025
    Shengqing Yang [MSFT]
    Jul 12, 2010
  3. James Cooke
    Replies:
    0
    Views:
    244
    James Cooke
    Sep 11, 2008
  4. Replies:
    2
    Views:
    349
    Thomas 'PointedEars' Lahn
    Jun 6, 2005
  5. Roger
    Replies:
    3
    Views:
    359
Loading...

Share This Page