<%@ Page Language="VB" ResponseEncoding="iso-8859-1" %> <%@ Register TagPrefix="Rico" Assembly="Rico" NameSpace="Rico" %> <%@ Register TagPrefix="My" TagName="dbLib" Src="dbConnect.ascx" %> Rico LiveGrid-Custom Styles
Base Library:
This example shows how the entire grid can be customized by disabling the regular themes. Here we have specified:
  • A default heading style (white text on a black background)
  • Selected a custom heading style for the date columns
  • Selected a custom hover style (when you hover over the headings)
  • Selected a custom style for the date column data (red text)
  • Selected a custom row highlight when you click on a row (yellow background)
  • Specifed that ship information have a blue background when the ship country is France, and a red background when the ship country is Switzerland.
Notice that when you export to Excel, styles and number formats get copied into the Excel file! One caveat: specifying a font color for a the heading cell only works when the grid's HdgHoverStyleId is set. Click on a cell to see available actions.