Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > bounding for dropdown list in datagrid

Thread Tools

bounding for dropdown list in datagrid

Posts: n/a

I put a dropdown list in ItemTemplate Column. I can select its value from
the dropdown list and store in a dataset, but when I retrieve records from
dataset, it doesn't show up in the datagrid. Is there anything I missed? and
where can I find something for reference?


Here is html code snippets.
<asp:datagrid id="dgProduct" style="Z-INDEX: 102; LEFT: 5px; POSITION:
absolute; TOP: 301px" runat="server" AutoGenerateColumns="False"
DataKeyField="ProductId" Width="100%">
<asp:BoundColumn DataField="Name" HeaderText="Product Name">
<ItemStyle Font-Size="X-Small"></ItemStyle>
<asp:TemplateColumn HeaderText="Product Code">
<aspropDownList id="ddlCode" runat="server">
<asp:ListItem Value="A">A</asp:ListItem>
<asp:ListItem Value="B">B</asp:ListItem>
<asp:ListItem Value="C">C</asp:ListItem>

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
bind a dropdown in a column in a datagrid based on the dropdown value selected in another column of the datagrid. vishnu ASP .Net 1 03-25-2006 01:24 PM
Bounding boxes areas C++ 7 05-23-2005 05:15 PM
Bounding box on clusters in a 2D list Python 12 04-25-2005 11:33 PM
bounding for dropdown list in datagrid Michelle ASP .Net 1 07-12-2003 08:26 AM
bounding for dropdown list in datagrid Michelle ASP .Net Datagrid Control 0 07-07-2003 08:32 PM