Click here to Skip to main content
15,884,629 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how can i add textbox control and dropdownlist(or combo box) to datagrid in asp.net?

it should be added during design not dynamically..

i am using asp.net, C#, visual studio 2005...

Can anybody help me please...

regards
karan
Posted
Updated 6-May-11 18:44pm
v2

You just need to put the controls in the ItemTemplate of the grid during design time.

You need to read about datagrid's before starting to code:
Have a look at them:
DataGrid Class[^]
Top Questions about the DataGrid Web Server Control[^]
GridView Quickstart[^]
 
Share this answer
 
<asp:DataGrid>
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
----Here u can use any ASP controls----
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>

This may help u
 
Share this answer
 
Comments
karan joshua 7-May-11 1:03am    
OH THANK U VERY MUCH PMITHUN...
 
Share this answer
 

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