iIn .aspx page , the below code give a Dropdowncombo for a coloum

 <asp:TemplateField HeaderText="Status" SortExpression="ItemStatus">
                            <EditItemTemplate>
                                <asp:DropDownList
DataTextField="ItemStatusID" DataValueField="ItemStatusID"
ID="ddlItemStatusID" Runat="server" CssClass = "NormalText" Width ="70">
                                <asp:ListItem Value =
"1">Active</asp:ListItem>
                                <asp:ListItem Value =
"99">Inactive</asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator
ID="rfvItemStatusID" runat="server" Display="Dynamic"
ErrorMessage="RequiredFieldValidator" ControlToValidate = "ddlItemStatusID"
>*</asp:RequiredFieldValidator>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblItemStatusID"
runat="server" Text='<%# Bind("ItemStatus") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="65px" />
                        </asp:TemplateField>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---

Reply via email to