hear i am post the my grid view.
<Columns>
<asp:TemplateField HeaderText="Item">
<ItemTemplate>
<p> <asp:Label ID="lblproductname" display="Dynamic" runat="server" Text='<%# Bind("productname") %>'></asp:Label></p>
<p><asp:Label ID="lblProductWeight" display="Dynamic" runat="server" Text='<%# Bind("groupvalue") %>'></asp:Label></p>
<p> <asp:Label ID="lblProductType" display="Dynamic" runat="server" Text='<%# Bind("groupname") %>'></asp:Label></p>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" />
<ItemStyle HorizontalAlign="Left" />
</asp:TemplateField>
<asp:BoundField DataField="Quantity" HeaderText="Qty">
<HeaderStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="Price" HeaderText="Price">
<HeaderStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="SubTotal" HeaderText="Sub Total">
<HeaderStyle HorizontalAlign="Left" />
</asp:BoundField>
</Columns>
<FooterStyle CssClass="datatable" />
</asp:GridView>
so how to make the visible false ItemTemplate of lables programaticaly in xyz method