Jacob,
Thanks for responding.
I downloaded the chapter5 code and my code looks the same. I tried to even replace my CSS file with your CSS file and I still have the same problem. Interestingly, your chapter5 code works correctly! In my project, when I click [u]Select</u> on an Alternating row, the row takes on the color of the Normal rows instead of the "Selected" color. The "Selected" color works fine on the Normal rows. I don't understand it.
Here is my aspx code:
Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GridView.aspx.cs" Inherits="GridView" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>GridView Example Page</title>
<link href="myGridView.css" rel="stylesheet" type="text/css" />
<link id="Link1" href="~/CSS/Import.css" rel="Stylesheet" type="text/css" runat="server" />
<!--[if lt IE 7]>
<link runat="server" rel="stylesheet" type="text/css" href="~/CSS/BrowserSpecific/IEMenu6.css" />
<![endif]-->
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/GridviewSource.xml">
</asp:XmlDataSource>
<br />
<asp:GridView CssSelectorClass="PrettyGridView" AllowPaging="true" PageSize="3" ToolTip="example" ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="XmlDataSource1">
<Columns>
<asp:CommandField ShowSelectButton="true" />
<asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
<asp:BoundField DataField="URL" HeaderText="URL" SortExpression="URL" />
</Columns>
</asp:GridView>
</div>
</form>
</body>
</html>
Jim