Home > DeveloperSection > Forums > Drop-down box in Gridview
E E Cummings
E E Cummings

Total Post:26

Posted on    July-16-2013 11:47 PM

 ASP.Net ASP.Net 

 1 Reply(s)
 938  View(s)
Rate this:
Hi Expert!

I have one asp.net c# grid-view. This gridview requires dropdown box and drop-down box's selected data will come from database. Please help me for this.

Thanks in advance

shreesh chandra shukla
shreesh chandra shukla

Total Post:105

Posted on    July-17-2013 8:12 AM


Not heaps clear on your question - some code snippets or a thorough description would be more useful. But I will soldier on!

You can convert any field in an ASP.NET GridView into a Template Field by selecting 'Edit Columns' on the Smart Tag. The Template Field will allow you to specify a control(s) to put inside that grid cell instead of a standard text box. You can bind it to whatever data source you like (or even bind the data source to the parent row). I suggest you google 'Grid View Template Field' for more thorough information about how to get it done.

Don't want to miss updates? Please click the below button!

Follow MindStick