How to hide a single formview row

Asok

New Member
Im trying to hide a single row of my formview based on the current state of my session variable.Currently I am attempting to encase the row in an update panel then simply set the Visible property to true or false.This isnt currently working.Here is the code:\[code\] <asp:FormView ID="FormView1" runat="server" Height="51px" Width="387px"> <EditItemTemplate> coffeeName: <asp:TextBox ID="coffeeNameTextBox" runat="server" Text='<%# Bind("coffeeName") %>' /> <br /> coffeeOrigin: <asp:TextBox ID="coffeeOriginTextBox" runat="server" Text='<%# Bind("coffeeOrigin") %>' /> <br /> coffeeStrength: <asp:TextBox ID="coffeeStrengthTextBox" runat="server" Text='<%# Bind("coffeeStrength") %>' /> <br /> coffeePrice: <asp:TextBox ID="coffeePriceTextBox" runat="server" Text='<%# Bind("coffeePrice") %>' /> <br /> coffeeGrind: <asp:TextBox ID="coffeeGrindTextBox" runat="server" Text='<%# Bind("coffeeGrind") %>' /> <br /> coffeeQty: <asp:TextBox ID="coffeeQtyTextBox" runat="server" Text='<%# Bind("coffeeQty") %>' /> <br /> coffeeRRP: <asp:TextBox ID="coffeeRRPTextBox" runat="server" Text='<%# Bind("coffeeRRP") %>' /> <br /> <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" /> &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" /> </EditItemTemplate> <ItemTemplate> <b>Origin:</b> <asp:Label ID="coffeeOriginLabel" runat="server" Text='<%# Bind("coffeeOrigin") %>' /> <br /> <br /> <b>Grind:</b> <asp:Label ID="coffeeGrindLabel" runat="server" Text='<%# Bind("coffeeGrind") %>' /> <br /> <br /> <b>Strength:</b> <asp:Label ID="coffeeStrengthLabel" runat="server" Text='<%# Bind("coffeeStrength") %>' /> <br /> <br /> <b>Price:
 
Back
Top