<asp:GridView ID="GvOrder" runat="server" AutoGenerateColumns="false"> <Columns> <asp:TemplateField HeaderText = "Item"> <ItemTemplate> <asp:Label ID="lblItemName" runat="server" Text='<%# Eval("Product_Name")%>' ></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText = "Price"> <ItemTemplate> <asp:Label ID="lblPrice" runat="server" Text='<%# Eval("Unit_Price")%>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText = "Quantity"> <ItemTemplate> <asp:TextBox ID="txtQuantity" onkeyup="return calculate(this)" runat="server"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText = "Total"> <ItemTemplate> <asp:Label ID="lblTotal" runat="server" Text="0"></asp:Label> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)