<asp:datagrid id="DataGrid1" tabIndex="10" runat="server" AutoGenerateColumns="False" CssClass="dataGrid" >
<AlternatingItemStyle CssClass="DataGridAlternate"></AlternatingItemStyle>
<ItemStyle CssClass="DataGridItem"></ItemStyle>
<HeaderStyle CssClass="DataGrid1HeaderStyle"></HeaderStyle>
<Columns>
<asp:ButtonColumn Text="Remove" CommandName="Delete"></asp:ButtonColumn>
<asp:TemplateColumn HeaderText="Part#">
<ItemTemplate>
<asp:Label id="Label12" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.item") %>'>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:Label id="Label13" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.item") %>' CssClass="textbox1">
</asp:Label>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Product">
<ItemTemplate>
<asp:Label id="lblItemDesc" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.description") %>'>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="itemDesc" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.description") %>' MaxLength="40" CssClass="textbox1">
</asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Qty">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<asp:TextBox id="itemQty" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container, "DataItem.qty") %>' CssClass="textbox1">
</asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="itemQty1" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container, "DataItem.qty") %>' CssClass="textbox1">
</asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Unit Price">
<ItemTemplate>
<asp:Label id="Label15" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.unitPrice", "${0:N2}") %>'>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="TextBox5" runat="server" Width="63px" Text='<%# DataBinder.Eval(Container, "DataItem.unitPrice", "${0:N2}") %>' CssClass="textbox1">
</asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Total Price">
<ItemTemplate>
<asp:Label id="Label16" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.totalPrice", "${0:N2}") %>'>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:Label id="Label17" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.totalPrice", "${0:N2}") %>'>
</asp:Label>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn Visible="False" HeaderText="Line">
<ItemTemplate>
<asp:Label id="co_line" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.co_line") %>'>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:Label id="co_line1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.co_line") %>'>
</asp:Label>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Whse">
<ItemTemplate>
<asp:Label id="lblWhse" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.whse") %>'>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList id="lstWhse" runat="server" Width="63px" SelectedIndex='<%# DataBinder.Eval(Container, "DataItem.whsei") %>' DataValueField="whsei" DataTextField="whse" CssClass="textbox1">
<asp:ListItem Value="GA">GA</asp:ListItem>
<asp:ListItem Value="MO">MO</asp:ListItem>
<asp:ListItem Value="NY">NY</asp:ListItem>
<asp:ListItem Value="OR">OR</asp:ListItem>
<asp:ListItem Value="SALE" Selected="True">SALE</asp:ListItem>
<asp:ListItem Value="123">123</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Warr Item">
<ItemTemplate>
<asp:Label id="lblWarrItem" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.warrItem") %>'>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="warrItem" runat="server" Width="70px" Text='<%# DataBinder.Eval(Container, "DataItem.warrItem") %>' CssClass="textbox1" MaxLength="30">
</asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Disc%">
<ItemTemplate>
<asp:Label id="Label14" runat="server" Width="26px" Text='<%# DataBinder.Eval(Container, "DataItem.disc") %>'>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="itemDisc" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container, "DataItem.disc") %>' CssClass="textbox1" MaxLength="6">
</asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Stock">
<ItemTemplate>
<asp:Label id="Label25" runat="server" Width="26px" Text='<%# DataBinder.Eval(Container, "DataItem.StockQty") %>'>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="StockQty" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container, "DataItem.StockQty") %>' CssClass="textbox1" MaxLength="10">
</asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Blade Length">
<ItemTemplate>
<asp:Label id="Label26" runat="server" Width="26px" Text='<%# DataBinder.Eval(Container, "DataItem.item_length") %>'>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="item_length" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container, "DataItem.item_length") %>' CssClass="textbox1" MaxLength="10">
</asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Urgent">
<ItemTemplate>
<asp:CheckBox id="ur1" runat="server" Checked='<%# DataBinder.Eval(Container, "DataItem.urgent") %>'>
</asp:CheckBox>
</ItemTemplate>
<EditItemTemplate>
<asp:CheckBox id="ur2" runat="server" Checked='<%# DataBinder.Eval(Container, "DataItem.urgent") %>'>
</asp:CheckBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel" EditText="Edit"></asp:EditCommandColumn>
</Columns>
</asp:datagrid>
|