Is GridView with Dropdown Columns possible?

  • Thread starter Thread starter IT BA
  • Start date Start date
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
 
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
 
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
 
Back
Top