聽到我發佈了我的網格視圖。 如何使網格視圖標籤可見false
<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>
因此如何使標貼的可見假的ItemTemplate programaticaly在XYZ方法
我不是當然,如果這樣s是正確的,所以不想編輯問題,但我相信問題是:「我怎樣才能在'ItemTemplate'中更改三個標籤的可見性? – Sayse