Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0 ASP.NET
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 10-Feb-13 23:26pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 379
1 Nirav Prabtani 266
2 Abhinav S 210
3 PIEBALDconsult 160
4 Dave Kreskowiak 155
0 OriginalGriff 7,545
1 Sergey Alexandrovich Kryukov 6,757
2 Maciej Los 3,909
3 Peter Leow 3,693
4 CHill60 2,712


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 11 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100