﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - How to show/hide a WebGrid column including header/footer</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-showhide-a-WebGrid-column-including-headerfooter/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>How to show/hide a WebGrid column including header/footer</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-showhide-a-WebGrid-column-including-headerfooter/</link><pubDate>Thu, 07 Apr 2011 10:25:33 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;&lt;span style="font-family: 'segoe ui', sans-serif; color: rgb(31, 73, 125); font-size: 9pt; "&gt;Please try to use following JavaScript code in order to hide “Address” column in WebGrid from client-side.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function WebButton1_OnClientClick(controlId, parameter) {    var WebGrid1 = ISGetObject("WebGrid1");
    WebGrid1.RootTable.Columns.GetNamedItem("Address").Visible = false;
    WebGrid1.RootTable.Columns.GetNamedItem("Address").HideFromView();
    return true;
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', sans-serif; color: rgb(31, 73, 125); font-size: 9pt; "&gt;Please let us know whether this helps or not.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;It does hide the columns but subsequent new rows display data in the wrong columns. For example, data for Field A is now in Field B. Please refer to the screen shots above. This was also reproduced by you and you said it would be given to the developers? What's the status of that?&lt;/p&gt;</description></item><item><title>How to show/hide a WebGrid column including header/footer</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-showhide-a-WebGrid-column-including-headerfooter/</link><pubDate>Thu, 07 Apr 2011 04:38:31 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please try to use following JavaScript code in order to hide “Address” column in WebGrid from client-side.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function WebButton1_OnClientClick(controlId, parameter) {
    var WebGrid1 = ISGetObject("WebGrid1");

    WebGrid1.RootTable.Columns.GetNamedItem("Address").Visible = false;
    WebGrid1.RootTable.Columns.GetNamedItem("Address").HideFromView();

    return true;
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please let us know whether this helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to show/hide a WebGrid column including header/footer</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-showhide-a-WebGrid-column-including-headerfooter/</link><pubDate>Wed, 06 Apr 2011 22:21:47 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I have re-forwarded this to the WebGrid development team to be investigated further.&lt;br/&gt;I’ll keep you updated with any news I heard from the team regarding this.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to show/hide a WebGrid column including header/footer</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-showhide-a-WebGrid-column-including-headerfooter/</link><pubDate>Wed, 06 Apr 2011 15:31:19 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Actually, the column’s visibility and HiddenDataMember are different approach.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to hide a column, you can try to set column visibility to False.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;The snippet code below shows how to hide the “&lt;strong&gt;ProductID&lt;/strong&gt;” column by setting the the column visibility to False.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebGrid&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebGridColumn&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Caption&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductID"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;DataMember&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductID"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Name&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductID"&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Width&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="100px"&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebGrid&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebGridColumn&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;HiddenDataMember property sets the hidden data member to be rendered along with this column. This property allowed you to render specified hidden data member along with the cell as pseudo attribute. You can easily retrieve the hidden data member’s value in client-side by accessing the DataMember directly.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;The snippet code below shows how to set the “ProductID” as HiddenDataMember in “ProductName” column.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebGrid&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebGridColumn&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Caption&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductName"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;DataMember&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductName"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Name&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductName"&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Width&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="100px"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;HiddenDataMember&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductID"&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebGrid&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebGridColumn&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;And below is the JavaScript sample that can be used to get the value of ProductID.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;function&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;getdata() {R&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;grid = wgGetGridById(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"WebGrid1"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;);&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;selObj = grid.GetSelectedObject();&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;selRow = selObj.GetRowObject();&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;cells = selRow.GetCells();&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;productName = cells.GetNamedItem(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"ProductName"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;);&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;ProductID = productName.GetElement().attributes[&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"ProductID"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;].value;

    alert(ProductID);
}&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;This is not what I need. I just need to be able to change the visiblity of a column via JavaScript either using CSS or some other property. If CSS is the wrong approach, is there another JAVASCRIPT property/method that I can use to hide/show columns dynamically?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>How to show/hide a WebGrid column including header/footer</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-showhide-a-WebGrid-column-including-headerfooter/</link><pubDate>Tue, 05 Apr 2011 00:27:29 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Actually, the column’s visibility and HiddenDataMember are different approach.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to hide a column, you can try to set column visibility to False.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The snippet code below shows how to hide the “&lt;strong&gt;ProductID&lt;/strong&gt;” column by setting the the column visibility to False.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebGrid&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebGridColumn&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Caption&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductID"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;DataMember&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductID"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Name&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductID"&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Width&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="100px"&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebGrid&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebGridColumn&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;HiddenDataMember property sets the hidden data member to be rendered along with this column. This property allowed you to render specified hidden data member along with the cell as pseudo attribute. You can easily retrieve the hidden data member’s value in client-side by accessing the DataMember directly.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The snippet code below shows how to set the “ProductID” as HiddenDataMember in “ProductName” column.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebGrid&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebGridColumn&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Caption&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductName"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;DataMember&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductName"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Name&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductName"&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Width&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="100px"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;HiddenDataMember&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductID"&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebGrid&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebGridColumn&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;And below is the JavaScript sample that can be used to get the value of ProductID.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;function&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;getdata() {&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;grid = wgGetGridById(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"WebGrid1"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;);&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;selObj = grid.GetSelectedObject();&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;selRow = selObj.GetRowObject();&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;cells = selRow.GetCells();&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;productName = cells.GetNamedItem(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"ProductName"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;);&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;ProductID = productName.GetElement().attributes[&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"ProductID"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;].value;

    alert(ProductID);
}&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to show/hide a WebGrid column including header/footer</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-showhide-a-WebGrid-column-including-headerfooter/</link><pubDate>Fri, 01 Apr 2011 09:51:32 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;I’m really sorry to inform you that it’s an incorrect approach to hide a column by setting the display style property to ‘none’. It is suggested to set column’s visibility to false (columns.Visible=“False”).&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Should you need to access the value of other columns, please try to use HiddenDataMember approach.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;br /&gt;The HiddenDataMember approach is using the column's Visible property. Correct?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;If so, I will try this and report back.&lt;/p&gt;</description></item><item><title>How to show/hide a WebGrid column including header/footer</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-showhide-a-WebGrid-column-including-headerfooter/</link><pubDate>Fri, 01 Apr 2011 02:31:50 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I’m really sorry to inform you that it’s an incorrect approach to hide a column by setting the display style property to ‘none’. It is suggested to set column’s visibility to false (columns.Visible=“False”).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Should you need to access the value of other columns, please try to use HiddenDataMember approach.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to show/hide a WebGrid column including header/footer</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-showhide-a-WebGrid-column-including-headerfooter/</link><pubDate>Thu, 31 Mar 2011 13:20:35 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;pre&gt;&lt;p align="left" class="MsoNormal" style="text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: -6.35pt; "&gt;&lt;span lang="undefined" style="font-family: 新宋体; color: blue; font-size: 9pt; "&gt;function&lt;/span&gt;&lt;span lang="undefined" style="font-family: 新宋体; font-size: 9pt; "&gt; HideColumn()//&lt;/span&gt;&lt;span style="font-family: 新宋体; font-size: 9pt; "&gt;hide cloumn&lt;/span&gt;&lt;span lang="undefined" style="font-family: 新宋体; font-size: 9pt; "&gt;&lt;span style=""&gt;        &lt;br /&gt;&lt;/span&gt;{&lt;span style=""&gt;            &lt;/span&gt;var grid = ISGetObject("WebGrid1");
&lt;/span&gt;&lt;/p&gt;
&lt;p align="left" class="MsoNormal" style="text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "&gt;&lt;span lang="undefined" style="font-family: 新宋体; font-size: 9pt; "&gt;&lt;span style=""&gt;            &lt;/span&gt;var col = grid.RootTable.Columns.GetNamedItem("&lt;/span&gt;&lt;span style="font-family: 新宋体; font-size: 9pt; "&gt;Cloumn Name&lt;span lang="undefined"&gt;");&lt;/span&gt;&lt;span lang="undefined"&gt;&lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align="left" class="MsoNormal" style="text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "&gt;&lt;span lang="undefined" style="font-family: 新宋体; font-size: 9pt; "&gt;&lt;span style=""&gt;            &lt;/span&gt;col.Set("Visible", "false", true);&lt;/span&gt;&lt;/p&gt;
&lt;p align="left" class="MsoNormal" style="text-align: left; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; "&gt;&lt;span lang="undefined" style="font-family: 新宋体; font-size: 9pt; "&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;b style=""&gt;grid.RefreshAll();&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;span lang="undefined" style="font-family: 新宋体; font-size: 9pt; "&gt;&lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;That's not an option to perform a postback to hide a column.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Can I get an update on these bugs? Are they being addressed in the next release?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>How to show/hide a WebGrid column including header/footer</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-showhide-a-WebGrid-column-including-headerfooter/</link><pubDate>Tue, 25 Jan 2011 20:27:26 GMT</pubDate><dc:creator>qq397472251</dc:creator><description>&lt;pre&gt;
&lt;p align="left" class="MsoNormal" style="text-align: left; margin: 0cm 0cm 0pt -6.35pt; mso-layout-grid-align: none"&gt;&lt;span lang="undefined" style="font-family: 新宋体; color: blue; font-size: 9pt; mso-hansi-font-family: 'times new roman'; mso-font-kerning: 0pt; mso-no-proof: yes"&gt;function&lt;/span&gt;&lt;span lang="undefined" style="font-family: 新宋体; font-size: 9pt; mso-hansi-font-family: 'times new roman'; mso-font-kerning: 0pt; mso-no-proof: yes"&gt; HideColumn()//&lt;/span&gt;&lt;span style="font-family: 新宋体; font-size: 9pt; mso-hansi-font-family: 'times new roman'; mso-font-kerning: 0pt; mso-no-proof: yes"&gt;hide cloumn&lt;/span&gt;&lt;span lang="undefined" style="font-family: 新宋体; font-size: 9pt; mso-hansi-font-family: 'times new roman'; mso-font-kerning: 0pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;        &lt;br /&gt;&lt;/span&gt;{&lt;span style="mso-spacerun: yes"&gt;            &lt;/span&gt;var grid = ISGetObject("WebGrid1");
&lt;/span&gt;&lt;/p&gt;
&lt;p align="left" class="MsoNormal" style="text-align: left; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;span lang="undefined" style="font-family: 新宋体; font-size: 9pt; mso-hansi-font-family: 'times new roman'; mso-font-kerning: 0pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;            &lt;/span&gt;var col = grid.RootTable.Columns.GetNamedItem("&lt;/span&gt;&lt;span style="font-family: 新宋体; font-size: 9pt; mso-hansi-font-family: 'times new roman'; mso-font-kerning: 0pt; mso-no-proof: yes"&gt;Cloumn Name&lt;span lang="undefined"&gt;");&lt;/span&gt;&lt;span lang="undefined"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align="left" class="MsoNormal" style="text-align: left; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;span lang="undefined" style="font-family: 新宋体; font-size: 9pt; mso-hansi-font-family: 'times new roman'; mso-font-kerning: 0pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;            &lt;/span&gt;col.Set("Visible", "false", true);&lt;/span&gt;&lt;/p&gt;
&lt;p align="left" class="MsoNormal" style="text-align: left; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;span lang="undefined" style="font-family: 新宋体; font-size: 9pt; mso-hansi-font-family: 'times new roman'; mso-font-kerning: 0pt; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;            &lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;grid.RefreshAll();&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;span lang="undefined" style="font-family: 新宋体; font-size: 9pt; mso-hansi-font-family: 'times new roman'; mso-no-proof: yes; mso-bidi-font-family: 'times new roman'; mso-ansi-language: en-us; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/pre&gt;</description></item><item><title>How to show/hide a WebGrid column including header/footer</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-showhide-a-WebGrid-column-including-headerfooter/</link><pubDate>Tue, 25 Jan 2011 15:24:15 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 10pt"&gt;Thank you for the additional information.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 10pt"&gt;I will have this information forwarded to the dev team and will let you know any news I heard from the team regarding this.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I found another bug that appears to be releated.  This only occurs for the "NewRow", at least one column is frozen, and if you use the horizontal scrollbar to scroll a field out of view. Then, if you handle the WebGrid's AfterExitMode, the field within the EditObject isn't the correct field being edited.&lt;/p&gt;</description></item><item><title>How to show/hide a WebGrid column including header/footer</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-showhide-a-WebGrid-column-including-headerfooter/</link><pubDate>Tue, 23 Nov 2010 11:03:14 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;p&gt;I have been using the following JavaScript to show/hide a WebGrid column including the header/footer. This works fine for WebGrids that do not have horizontal scrollbars. As soon as the user scrolls causing the "hidden" fields to be out of view, they re-appear after the user scrolls back.&lt;/p&gt;
&lt;p&gt;Is there a better way to ensure the header/column/footer are hidden? I'd prefer something by name assuming performance isn't compromised.&lt;/p&gt;&lt;pre&gt;function WebGrid_ShowHideColumnByPos(gridID, position, show) 
{
    var grid = WebGrid_GetGrid(gridID);
    if (grid == null) { return; }
    var rootTable = grid.GetRootTable();
    var row = rootTable.GetElement(WG40.BODY, WG40.HTMLTABLE);
    
    // Get the header and column groups
    headerGroup = rootTable.GetElement(WG40.COLHEADER, WG40.HTMLDIV);
    colGroup = rootTable.GetElement(WG40.COLGROUP, WG40.HTMLDIV);

    // Show/Hide
    var styleDisplay = "none";
    if (show == true) { styleDisplay = ""; } else { styleDisplay = "none"; }
    headerGroup.childNodes[0].childNodes[0].childNodes[0].childNodes[position].style.display = styleDisplay;
    colGroup.childNodes[position].style.display = styleDisplay;
}&lt;/pre&gt;
</description></item></channel></rss>