I've been working with CFGrids recently especially the HTML format. One recent issue I had was the ability to dynamically hide a column once the grid has been loaded. Luckily the Ext's framework that sits underneath is full of hidden gems in ways you can add extra functionality and ColdFusion provides ColdFusion.Grid.getGridObject that allows you to tap into this First, lets create our grid<cfset gridData = queryNew("col1,col2")><cfloop from="1" to="5" index="i"> <cfset queryAddRow(gridData)> <cfset querySetCell(gridData, "col1", "Row #i# Col 1", i)> <cfset querySetCell(gridData, "col2", "Row #i# Col 2", i)></cfloop><cfscript> args = structNew(); args.autowidth = true; args.name = "myTestGrid"; args.format = "html"; args.width = "250"; args.query = "gridData";</cfscript><cfform name="test"><cfgrid attributeCollection="#args#"> <cfgridcolumn name="col1" header="My 1st Col"> <cfgridcolumn name="col2" header="My 2nd Col"></cfgrid></cfform>The idea of the code will be to dynamically hide the first column onLoad.<cfsavecontent variable="ScriptForHead"> </cfsavecontent><cfhtmlhead text="#ScriptForHead#" /><cfset ajaxOnLoad('hideCol')>Complete code should look like this:<cfsavecontent variable="ScriptForHead"></cfsavecontent><cfhtmlhead text="#ScriptForHead#" /><cfset ajaxOnLoad('hideCol')> <cfset gridData = queryNew("col1,col2")><cfloop from="1" to="5" index="i"> <cfset queryAddRow(gridData)> <cfset querySetCell(gridData, "col1", "Row #i# Col 1", i)> <cfset querySetCell(gridData, "col2", "Row #i# Col 2", i)></cfloop><cfscript> args = structNew(); args.autowidth = true; args.name = "myTestGrid"; args.format = "html"; args.width = "250"; args.query = "gridData";</cfscript><cfform name="test"><cfgrid attributeCollection="#args#"> <cfgridcolumn name="col1" header="My 1st Col"> <cfgridcolumn name="col2" header="My 2nd Col"></cfgrid></cfform>