Posted on: 10/9/2012 12:10:16 AM | Views : 408

Hello, I am veiwing a gridview where it has all columns except one, which is description/content. As it is too long, I would only prefer to be able to display the contents when I press the edit button, but is there anyway to keep it hidden but display it only in edit mode? This is my code:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" ShowFooter="true" Font-Names="Verdana" Font-Size="11px" HeaderStyle-BackColor="#C3C3C3" FooterStyle-BackColor="#C3C3C3" cellpadding="1" HorizontalAlign="Center" DataKeyNames="ID" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowUpdating="GridView1_RowUpdating"> <Columns> <asp:TemplateField HeaderText="Title" HeaderStyle-CssClass="pad" ItemStyle-CssClass="pad" SortExpression="Title" HeaderStyle-BorderColor="Black"> ...

Go to the complete details ...