Is GridView with Dropdown Columns possible?

I

IT BA

Hello All,

I have a Gridview object on my webpage with Edit capabilities. It's very
simple as it returns rows with a handful of columns from a single table.
Trouble is that when in Edit mode, I need a couple of those columns to be
dropdown lists linked to a query (I already have the Views created in
SQL2K5). I'm STUCK.

I'm using Visual Web Developer 2005 Express and SQL Server 2005 Enterprise
(Evaluation).

I'm sure this can't be as hard as I'm making it.

Thanks in advance.

-Steve
 
M

miher

Hi,

I'm not sure i got Your problem right, but You can convert gridview columns
to template columns, and in those You can specify the edittemplate as You
wish.
To do this select the gridview, and edit the Columns property, in the
appearing dialog You will see all of Your columns. Select the one You would
like to modify then click on 'convert this field into template field'. Now
You can edit the various templates for the given column.

Hope You find this useful.
-Zsolt
 
I

IT BA

Thanks. That's right on. In the edittemplate I dropped in a dropdownlist
control, linked it to the SQL View, and bound it to the column. Seems easy
now...

-Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top