Results 1 to 4 of 4

Thread: [Resolved] GridView - Selected Row and Background Color

  1. #1

    Thread Starter
    Fanatic Member snufse's Avatar
    Join Date
    Jul 2004
    Location
    Jupiter, FL
    Posts
    912

    [Resolved] GridView - Selected Row and Background Color

    I have a GridView and when I select a row, I set the back ground color = red for selected row (GridView1.SelectedRow.BackColor). When user clicks and sorts a column I need to reset/disable the Selected.Row background color (it stay as red). Since I am using alternating row colors I do not know what the original color was.
    Last edited by snufse; Jul 16th, 2008 at 02:25 PM.

  2. #2
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: GridView - Selected Row and Background Color

    would you be intersted in setting GridView.SelectedIndex = -1 in GridView's Sort ebent handler?
    __________________
    Rate the posts that helped you

  3. #3

    Thread Starter
    Fanatic Member snufse's Avatar
    Join Date
    Jul 2004
    Location
    Jupiter, FL
    Posts
    912

    Re: GridView - Selected Row and Background Color

    Thank worked perfectly! Thank you so much.

  4. #4
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: [Resolved] GridView - Selected Row and Background Color

    You are welcome
    __________________
    Rate the posts that helped you

Posting Permissions

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



Click Here to Expand Forum to Full Width