Hello
I want to put a combo box into my datagrid. The combo box will not be filled from the database, but only have number 1 to 50. As this is a quantity that the user can select from and then update the database.
This is the code l have so far, doesn't really work well. And l am not sure how to fill the combox with the number 1 to 50 using ASP.Net.
Many thanks in advance,Code:<form id="Form1" method="post" runat="server"> <asp:DataGrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 360px; POSITION: absolute; TOP: 304px" runat="server" AutoGenerateColumns="False"> <Columns> <asp:BoundColumn DataField="ProductCode" HeaderText="Product Code"></asp:BoundColumn> <asp:TemplateColumn HeaderText="Quantity"> <ItemTemplate> <asp:DropDownList ID="cboQuantity" runat="server" /> </ItemTemplate> </asp:TemplateColumn> </Columns> </asp:DataGrid> </form>
Steve




Reply With Quote