|
-
Jul 16th, 2008, 01:33 PM
#1
Thread Starter
Fanatic Member
[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.
-
Jul 16th, 2008, 01:59 PM
#2
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 
-
Jul 16th, 2008, 02:24 PM
#3
Thread Starter
Fanatic Member
Re: GridView - Selected Row and Background Color
Thank worked perfectly! Thank you so much.
-
Jul 16th, 2008, 02:30 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|