View Single Post
  #3 (permalink)  
Old May 3rd, 2008, 08:21 PM
workib workib is offline
Authorized User
 
Join Date: Apr 2008
Location: Rockville, MD, USA.
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

I have used the following code to put drop down list inside of a grid. I hope this helps.

</ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="INTAKE_DATE" DataFormatString="{0:d}"
                HeaderText="INTAKE_DATE" SortExpression="INTAKE_DATE" />
            <asp:TemplateField HeaderText="STATUS" SortExpression="STATUS">
                 <EditItemTemplate>
                    <asp:DropDownList ID="STATUSDropDownList" runat="server" AutoPostBack="true"
                        SelectedValue='<%# Bind("STATUS", "{0}") %>'>
                        <asp:ListItem Text="ADD DROP DOWN LIST ITEMS" Value="ADD DROP DOWN LIST ITEMS" Enabled="true"></asp:ListItem>
                    </asp:DropDownList>
                 </EditItemTemplate>
                 <ItemTemplate>
                     <asp:DropDownList ID="STATUSDropDownList" runat="server" AutoPostBack="true"
                         SelectedValue='<%# Bind("STATUS", "{0}") %>'>
                         <asp:ListItem Enabled="true" Text="ADD DROP DOWN VALUES"
                             Value="ADD DROP DOWN VALUES"
"></asp:ListItem>
                     </asp:DropDownList>
                 </ItemTemplate>
            </asp:TemplateField>
Brian