DataGrid Focus

Discussion in 'ASP .Net Datagrid Control' started by Gary W, Jun 22, 2007.

  1. Gary W

    Gary W Guest

    Here is my problem. I have a datagrid that when you click on a row, it goes
    into edit mode and depending on where I clicked it the focus is on that
    control using Control.Focus(). I also have code so if I keep pressing tab it
    will create a new row and focus on the newly created row. Recently I put the
    same datagrid into an asp.net ajax update panel and now the focus is outside
    of the update panel when I click on a row. It also breaks my new row focus.

    So I tried using javascript code on a timer so it can focus, but it’s not a
    100%. From my analysis so far, I believe that because the whole page isn’t
    reloaded the javascript in .Focus() isn’t executed. My question is this, is
    there a way to focus with asp.net ajax or is there any other solutions?

    Thanks,
    Gary
    Gary W, Jun 22, 2007
    #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. Jason
    Replies:
    4
    Views:
    1,617
    Jason
    May 7, 2007
  2. Replies:
    2
    Views:
    336
    Thomas 'PointedEars' Lahn
    Jun 6, 2005
  3. Roger
    Replies:
    3
    Views:
    321
  4. Jeff

    manual focus vs. focus()

    Jeff, May 20, 2007, in forum: Javascript
    Replies:
    4
    Views:
    178
  5. Spizzat2
    Replies:
    2
    Views:
    177
    Spizzat2
    Jan 9, 2008
Loading...

Share This Page