setFocus within Grid

Discussion in 'ASP .Net Datagrid Control' started by Mike, May 11, 2004.

  1. Mike

    Mike Guest

    How can I have the first row of the datagrid highlighted when the page
    loads?
    I have rows highlighting on mouseover, and doubleclick event, but i want the
    first row to be highlighted and also allow the user to use the arrows up and
    down within the grid.

    is that possible and is there any examples on this
    Mike, May 11, 2004
    #1
    1. Advertising

  2. Mike

    SoftLion Guest

    One way of doing this:

    You need to add some javascript to your page for this.
    BODY onLoad="highlightFirstRow(...);"
    and add a behaviour linked to the grid CSS style to TR tags so that they
    react to UP and DOWN keys.

    Benjamin.


    "Mike" <> a écrit dans le message de
    news:...
    > How can I have the first row of the datagrid highlighted when the page
    > loads?
    > I have rows highlighting on mouseover, and doubleclick event, but i want

    the
    > first row to be highlighted and also allow the user to use the arrows up

    and
    > down within the grid.
    >
    > is that possible and is there any examples on this
    >
    >
    SoftLion, May 12, 2004
    #2
    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. Jurjen de Groot

    SetFocus

    Jurjen de Groot, Jun 29, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    616
    dmedina
    Jun 30, 2003
  2. jamess

    asp setfocus and performance

    jamess, Oct 30, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    437
    Saravana [MVP]
    Oct 30, 2003
  3. Girish
    Replies:
    4
    Views:
    657
    Patrick.O.Ige
    Jul 19, 2005
  4. Danny Tuppeny

    Grouped grid? Or grid within datalist?

    Danny Tuppeny, Oct 27, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    483
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    Oct 27, 2005
  5. Iams

    How to edit records in a grid that's within a grid

    Iams, Mar 17, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    178
Loading...

Share This Page