Click here to Skip to main content
Rate this: bad
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 11-Feb-13 0:26am

1 solution

Rate this: bad
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.

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

  Print Answers RSS
0 OriginalGriff 638
1 Sergey Alexandrovich Kryukov 445
2 ProgramFOX 275
3 CHill60 225
4 Maciej Los 215
0 OriginalGriff 550
1 Sergey Alexandrovich Kryukov 470
2 Maciej Los 310
3 ProgramFOX 275
4 Peter Leow 250

Advertise | Privacy | Mobile
Web03 | 2.8.150331.1 | Last Updated 11 Feb 2013
Copyright © CodeProject, 1999-2015
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