gridview dropbox

Posted by tbischel on Stack Overflow See other posts from Stack Overflow or by tbischel
Published on 2010-05-04T22:14:28Z Indexed on 2010/05/04 22:18 UTC
Read the original article Hit count: 236

Filed under:
|
|
|

I'm trying to use a GridView to display a list of components in ASP.NET. I'm trying to make it editable at the same time. One of the columns is a string that should be selected out of a list when the user edits the row.

So I've tried the following:

  1. Convert the BoundField row to an ItemTemplate
  2. Add a dropbox to the template window in the gridview
  3. bound the selecteditem to the string

At this point, I get an error because the list items haven't been set up in the dropbox. So I guess the two things I'm wondering are:

  1. How do I assign the items in the dropbox to a dynamically created list of options?
  2. How do I make the dropbox only appear when the row is being edited?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#