<link rel="stylesheet" type="text/css" href="dbnetsuite.css.ashx" /> <script language="JavaScript" src="dbnetsuite.js.ashx"></script>
<script> jQuery(document).ready( init ) function init() { var dbnetgrid1 = new DbNetGrid("dbnetgrid1"); with (dbnetgrid1) { connectionString = "SamplesDatabase" fromPart = "Products" customSave = true bind("onCellTransform", transformDiscontinued) bind("onHeaderCellTransform", transformHeaderCell) initialize() } } function transformHeaderCell(sender, args) { args.cell.style.backgroundColor = "lightblue"; } function transformDiscontinued(sender, args) { switch( args.columnName.toLowerCase() ) { case "discontinued": if (args.cell.childNodes[0].checked) args.cell.parentNode.style.color = "silver"; break; } } </script>
<div id="dbnetgrid1"></div>