how would i implement dropdownlist in gridview using c#

Answer Posted / indra

<asp:GridView ID="GridView1" AutoGenerateColumns ="false"
Font-Size=Small Font-Names="Verdana" GridLines="None"
runat="server">
<Columns>
<asp:TemplateField HeaderText="Customer name" >
<ItemTemplate>
<asp:DropDown ID="DDcustname"
runat="server"></asp:DropDown>
</ItemTemplate>

</asp:TemplateField>
</Columns>
</asp:GridView>

Is This Answer Correct ?    15 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between DataReader and DataSet in ADO.NET?

780


What is ado.net components?

673


How will you fill the gridview by using datatable object at runtime?

739


What are advantages of microsoft-provided data provider classes in ado.net?

753


Is ado.net dead?

720


Which architecture does Datasets follow?

775


What is ole access?

698


What is maximum pool size in ado.net connection string?

710


What does executenonquery () method return?

673


Which provider is used to connect ms access, oracle, etc…?

720


How do you merge 2 datasets into the third dataset in a simple manner?

747


What are the different ado.net namespaces are available in .net?

730


How to Read, Add, Update and Delete record in Entity Framework ?

763


Difference between sqlcommand and sqlcommandbuilder?

774


What is the use of SqlCommand object?

856