Click here to Skip to main content
15,921,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello i want to display only one drop down in gridview using asp.net. suppose i have an id =5. and i am loading the data in gridview with drop down . here i have successfully add drop down in gridview column but here i want to populate the drop down only for row where id = 5. and other row of grid should contain label.
please help me

What I have tried:

ASP.NET
<asp:TemplateField>
    <ItemTemplate>
        <asp:DropDownList ID="myddl" runat="server"></asp:DropDownList>
    </ItemTemplate>
</asp:TemplateField>
Posted
Updated 15-Dec-16 0:48am
v2
Comments
kirk651 15-Dec-16 8:02am    
Ok, so if I understand it correctly, you got some sort of Object, witch contains an ID, and u want to change a property. For the change u want to use a dropdownlist at certain IDs. Am i right?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900