Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET3.5
hello
i dont have idea about inserting dropdown list in gridview control can you help me plsease
Posted 27-Apr-12 19:07pm
Mamtha7436
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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 !
  Permalink  
v3
Comments
Member 8635670 at 28-Apr-12 2:00am
   
thank u
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Comments
Member 8635670 at 28-Apr-12 1:59am
   
thankuuuu
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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.[^]
  Permalink  
Comments
Member 8635670 at 28-Apr-12 2:00am
   
thank u
Prasad_Kulkarni at 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)

  Print Answers RSS
0 OriginalGriff 278
1 Maciej Los 205
2 DamithSL 193
3 Nguyen.H.H.Dang 190
4 arvind mepani 187


Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 28 Apr 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid