Click here to Skip to main content
12,889,448 members (48,973 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#3.0 C# 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
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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170424.1 | Last Updated 11 Feb 2013
Copyright © CodeProject, 1999-2017
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