Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-11-2011, 08:12 PM   PM User | #1
osm0sis
New to the CF scene

 
Join Date: Apr 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
osm0sis is an unknown quantity at this point
Question asp:gridview select/deselect row styling issue

I'm new to ASP, so sorry for sounding like a noob, but I really appreciate any help I can get while I'm learning!

I'm trying to style an asp:gridview, and it looks good so far until you click a row; then the row loses its style and doesn't regain it after clicking a new row.

Here's the code I'm using for the gridview:

<asp:GridView ID="gvBuyer" runat="server" OnRowDataBound="gvBuyer_RowDataBound" ClientIDMode="AutoID"
Width="100%" AllowPaging="true" AllowSorting="true" PageSize="20">
<HeaderStyle CssClass="largeGrid_header" />
<RowStyle CssClass="gridRow" />
<SelectedRowStyle CssClass="gridRow_alt" />
<EditRowStyle CssClass="gridRow" />
<AlternatingRowStyle CssClass="gridRow_alt" />
<Columns>
<asp:BoundField DataField="FirstName" HeaderText="First Name" />
<asp:BoundField DataField="LastName" HeaderText="Last Name" />
<asp:BoundField DataField="Email" HeaderText="Email" />
<asp:BoundField DataField="Phone" HeaderText="Phone" />
<asp:BoundField DataField="Status" HeaderText="Status" />
<asp:BoundField DataField="MemberSince" HeaderText="Member Since" DataFormatString="{0}" />
</Columns>
</asp:GridView>



Thanks again and mucho appreciation!
osm0sis is offline   Reply With Quote
Reply

Bookmarks

Tags
gridview css row

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:56 AM.


Advertisement
Log in to turn off these ads.