Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hai sir,

I am creating auto generated columns for gridview and by defaultly textbox control will be added and i want to replace textbox to dropdowns in auto generated columns in gridview .can you please solve my problem
Posted

1 solution

You will have to covert your fields into templated fields. This will allow you to edit the template and alter the controls as you need.

Click the smart tag of the gridview and click "Edit Fields". Then find the field you want to change and click covert to template. Then in the smart tag again, select edit templates. This will give you access to the default textbox and give you the ability to change it.
 
Share this answer
 
v2

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