--- /dev/null
+<%@ Page Language="VB" ResponseEncoding="iso-8859-1" %>\r
+<%@ Register TagPrefix="Rico" Assembly="Rico" NameSpace="Rico" %>\r
+<%@ Register TagPrefix="My" TagName="dbLib" Src="dbConnect.ascx" %>\r
+<My:dbLib id='app' runat='server' />\r
+\r
+<script runat="server">\r
+\r
+Sub Page_Load(Sender As object, e As EventArgs)\r
+ Session.Timeout=60\r
+ app.OpenGrid(ex2notheme)\r
+End Sub\r
+\r
+</script>\r
+\r
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r
+<html>\r
+<head>\r
+<title>Rico LiveGrid-Example 2</title>\r
+\r
+<Rico:LoadClient id='RicoClient' checkQueryString='notheme' runat='server' />\r
+<link href="../demo.css" type="text/css" rel="stylesheet" />\r
+\r
+</head>\r
+<body>\r
+\r
+<div id='explanation'>\r
+Base Library: \r
+<script type='text/javascript'>\r
+document.write(Rico.Lib+' '+Rico.LibVersion);\r
+</script>\r
+<hr>\r
+This example shows how the entire grid can be customized by disabling the regular themes.\r
+Here we have specified:<ul>\r
+<li>A default heading style (white text on a black background)\r
+<li>Selected a custom heading style for the date columns\r
+<li>Selected a custom hover style (when you hover over the headings)\r
+<li>Selected a custom style for the date column data (red text)\r
+<li>Selected a custom row highlight when you click on a row (yellow background)\r
+<li>Specifed that ship information have a blue background when the ship country is France, and a red background when the ship country is Switzerland.\r
+</ul>\r
+Notice that when you export to Excel, styles and number formats get copied into the Excel file!\r
+One caveat: specifying a font color for a the heading cell only works when the grid's HdgHoverStyleId is set.\r
+Click on a cell to see available actions.\r
+</div>\r
+\r
+<Rico:LiveGrid runat='server' id='ex2notheme' fmt="json" DefaultSort='OrderID' menuEvent='click' frozenColumns='1' HdgHoverStyleId="GrayText" highlightElem='cursorRow'>\r
+ <Rico:DefaultHdgStyle runat='server' bgcolor="black" color="white" align="center" />\r
+ <Rico:Style runat='server' StyleID='RedHdg' bgcolor="red" color="white" align="center" />\r
+ <Rico:Style runat='server' StyleID='GrayText' color="#dddddd" />\r
+ <Rico:Style runat='server' StyleID='ricoLG_oddRow' bgcolor="#eeeeee" />\r
+ <Rico:Style runat='server' StyleID='ricoLG_selection' bgcolor="yellow" />\r
+ \r
+ <Rico:Table runat='server' TblName='orders' />\r
+ <Rico:TableCol runat='server' ColName='OrderID' heading='Order#' width='60' />\r
+ <Rico:TableCol runat='server' ColName='CustomerID' heading='Cust#' width='60' />\r
+ <Rico:TableCol runat='server' ColName='ShipName' heading='Ship Name' width='150' CellStyleColID='Country' />\r
+ <Rico:TableCol runat='server' ColName='ShipCity' heading='Ship City' width='120' CellStyleColID='Country' />\r
+ <Rico:TableCol runat='server' ColName='ShipCountry' heading='Ship Country' width='90' id='Country' CellStyleColID='Country' >\r
+ <Rico:Style runat='server' StyleID='France' bgcolor="blue" color="white" />\r
+ <Rico:Style runat='server' StyleID='Switzerland' bgcolor="red" color="white" />\r
+ </Rico:TableCol>\r
+ <Rico:TableCol runat='server' ColName='OrderDate' heading='Order Date' datatype='date' width='100' HdgStyleId='RedHdg' color='red' dateFmt='d mmm yyyy' />\r
+ <Rico:TableCol runat='server' ColName='ShippedDate' heading='Ship Date' datatype='date' width='100' HdgStyleId='RedHdg' color='red' dateFmt='d mmm yyyy' />\r
+</Rico:LiveGrid>\r
+\r
+</body>\r
+</html>\r