Re: Datagrid Row Selected

Discussion in 'ASP .Net' started by Luis E Valencia, May 10, 2004.

  1. Cool the second one worked for me.
    But
    When I select 2 , the last one also stays selected I want to remove the last
    selected one.



    "Bin Song, MCP" <> escribió en el mensaje
    news:...
    > Hi,
    >
    > 2 Ways to change the color of the row selected:
    > One is to specify a style in template:
    > <SelectedItemStyle BackColor="red"></SelectedItemStyle>
    > another way is to add through your itemcommand
    > Sub DataList_ItemCommand(sender As Object, e As

    DataListCommandEventArgs)
    > If e.Item.CommandName = "View" Then
    > e.Item.BackColor = Color.Red
    > End If
    > End Sub
    >
    > Bin Song, MCP
    >
     
    Luis E Valencia, May 10, 2004
    #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. =?Utf-8?B?U3VyZXNo?=
    Replies:
    1
    Views:
    484
    Saravana
    Nov 22, 2004
  2. Charles Shao
    Replies:
    1
    Views:
    411
    Eliyahu Goldin
    Apr 18, 2005
  3. Want to add row under selected row of gridview

    , Feb 16, 2007, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    340
  4. D
    Replies:
    0
    Views:
    252
  5. Selected Row Only GridView Row Visible?

    , Oct 17, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    321
Loading...

Share This Page