How do I add a DropDownList to a DataGrid EditItemTemplate? (again)
Details Related Types
Site:  DotNetJunkies
Original URL:  http://www.dotnetjunkies.com/Tutorial/42ACA3E5-103C-4FC3-ACB3-25D13EB11DC3.dcik
Summary:
It has come to our attention that this article didn't completly anwser the proposed question. Because of this fact we are adding yet another one. In this code example we will be demonstrating how not only show a DropDownList control populated from a database in an EditItemColumn, but how additionally show a TextBox to edit the value of the DropDownlist. Because we are all intelligent programmers I am not going to give a huge background on how editing works and how to use the DataGrid, instead I am going to
System.Data.DataSet
System.Data.DataTable
System.Data.SqlClient.SqlConnection
System.Data.SqlClient.SqlDataAdapter
System.Data.SqlClient.SqlParameter
System.EventArgs
System.Web.UI.MobileControls.TextBox
System.Web.UI.WebControls.BoundColumn
System.Web.UI.WebControls.DataGrid
System.Web.UI.WebControls.DataGridCommandEventArgs
System.Web.UI.WebControls.DropDownList
System.Web.UI.WebControls.EditCommandColumn
System.Web.UI.WebControls.TemplateColumn
System.Web.UI.WebControls.TextBox
System.Web.UI.WebControls.VerticalAlign
System.Windows.Forms.DataGrid
System.Windows.Forms.TextBox
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com