Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

bounding for dropdown list in datagrid

 
 
Michelle
Guest
Posts: n/a
 
      07-07-2003
Hello,

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?

Thanks.

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%">
<Columns>
<asp:BoundColumn DataField="Name" HeaderText="Product Name">
<ItemStyle Font-Size="X-Small"></ItemStyle>
</asp:BoundColumn>
<asp:TemplateColumn HeaderText="Product Code">
<ItemTemplate>
<aspropDownList id="ddlCode" runat="server">
<asp:ListItem></asp:ListItem>
<asp:ListItem Value="A">A</asp:ListItem>
<asp:ListItem Value="B">B</asp:ListItem>
<asp:ListItem Value="C">C</asp:ListItem>
</aspropDownList>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>








 
Reply With Quote
 
 
 
Reply

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 querypk@gmail.com C++ 7 05-23-2005 05:15 PM
Bounding box on clusters in a 2D list superprad@gmail.com 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



Advertisments