RE: GridView and DropDownList



Hi Brian,

As Teemu said, you could use a TemplateField to use whatever controls
inside it. You can find some examples here:

#Using TemplateFields in the GridView Control
http://www.asp.net/learn/dataaccess/tutorial12vb.aspx?tabid=63


(There's also many useful ASP.NET 2.0 Data Tutorials here:
http://www.asp.net/learn/dataaccess/default.aspx?tabid=63)


Is it possible to have all of the controls active so that a simple click
of the Submit button updates all customer records with the data in those
DropDownLists?


I'm not sure if I fully understand your above question. Do you mean put all
rows of a GridView in edit mode and update them in a batch? If this is the
case, then you may find following example useful:

#Matt Dotson's .NET Tips & Tricks : Real World GridView: Bulk Editing
http://blogs.msdn.com/mattdotson/articles/490868.aspx


Hope this helps.


Regards,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


.


Loading