Hide Show column of Grid in MVC using jquery
<p>I am using Web Grid in asp.net MVC and have several columns and an Edit button.
When I click the edit button one particular column should be hidden. I want to achieve this using jquery. How can I do it?</p>

<pre><code>grid1.Column("Name", "Name", format: @&lt;text&gt;  &lt;span  class="display-mode"&gt; &lt;label id="lblName"  &gt;@item.Name&lt;/label&gt; &lt;/span&gt; &lt;input type="text" id="Name" value="@item.Name" class="edit-mode" /&gt;&lt;/text&gt;, style: "col2Width"), 
</code></pre>