Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello
i dont have idea about inserting dropdown list in gridview control can you help me plsease
Posted

1.Create a template field with an ItemTemplate and insert the Dropdown control.
2.In the RowDataBound Event find the DropDown control instance for the row and populate it.

have a look at :
http://computermutt.wordpress.com/2009/12/25/creating-a-dropdown-in-an-asp-net-gridview-control/[^]

Creating an ASP.NET GridView Custom Field of type DropDownList[^]

hope this helps !
 
Share this answer
 
v3
Comments
Mamtha7 28-Apr-12 2:00am    
thank u
This sample will demonstrate how you can insert a DropdownList ASP.Net control into a GridView control:
Insert DropdownList control in GridView[^]

A CP Aticle By Ravindra Nidhonkar
Accessing a DropDownList inside a GridView[^]

Another one CP Article with AJAX, This is an alternative for "Ajax Cascading DropDownList With GridView"
Ajax Cascading DropDownList With GridView[^]

This article by Matthew Rouse examines how to add a DropDownList control to an editable DataGrid:
Adding a DropDownList to an Editable DataGrid[^]

Check this answer too:
how to add a dropdownlist to gridview and how to add a datasource to dropdown.[^]
 
Share this answer
 
Comments
Mamtha7 28-Apr-12 2:00am    
thank u
Prasad_Kulkarni 28-Apr-12 2:05am    
Glad if it worked,
If it really helpful then formally 'Accept solution'

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