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
Explain the difference in record set and dataset?
What are all the commands used with Data Adapter?
What are two types of transaction supported by ado.net?
What is oledb driver?
Can you explain how to enable and disable connection pooling?
How to add a check box or a dropdown list to a column in a datagrid?
Which object needs to be closed?
How do you connect to sql server database without using sqlclient?
What is row state?
What is bubbled event?
What do you know about ado.net's methods?
What is the role of clr?
How do we use stored procedure in ADO.NET and how do we provide parameters to the stored procedures?
How to identify the updated rows in a dataset?
What is ado in agriculture?