Fare clic sul pulsante "Start " di Windows e selezionare " Microsoft Visual Studio ". 
 2 
 Fare clic su " Apri" e selezionare la pagina Web ASP.NET in che si vuole fare una colonna su un GridView in un elenco a discesa 
 3 
 Aggiungere il seguente codice alla vostra pagina Web dopo la linea di "forma" : . 
 
 < , asp: GridView ID = " GridView1 " runat = "server " AutoGenerateColumns = "false" 
 
 DataKeyNames = DataSourceID " Country " = " SqlDataSource1 " > 
 
     < asp: BoundField DataField = "Paese" HeaderText = "Paese"   InsertVisible ReadOnly = "False" = SortExpression "True" = " Nazione " />   < asp: BoundField DataField = " Popolazione " HeaderText = " Popolazione "   SortExpression = " Popolazione " />   < asp: BoundField DataField = " Capitol " HeaderText = " Capitol "   SortExpression = " Capitol " />   < asp: BoundField DataField = " Creato " HeaderText = " creato "   SortExpression = " creato " />       < asp: DropDownList ID = " DropDownList1 " runat =   DataSourceID = DataTextField "server " " SqlDataSource2 " = " Area" DataValueField = " Area"   SelectedValue = ' < % # Bind ( "Area" ) ID = " Label1 " runat = Testo "server" = ' < % # Bind ( "Area" ) ID = " SqlDataSource1 " runat = "server"   ConnectionString = " < % $ ConnectionStrings : NORTHWNDConnectionString % > "   DeleteCommand = " DELETE FROM [ Dipendenti ] WHERE [ Paese] = @ paese "   InsertCommand =" INSERT INTO [Dipendenti ] ( [ Popolazione ] , [ Capitol ], [ Creato ], [ area] ) VALUES ( @ Popolazione, @ Capitol , @ Creato , @ Area ) "   SelectCommand = "SELECT [Paese] , [ della popolazione ] , [ Capitol ] , [ Creazione ] , [ area] FROM [ Dipendenti ] "   UpdateCommand = "UPDATE [Dipendenti ] SET [ popolazione ] = @ Popolazione, [ Capitol ] = @ Capitol , [ Creazione ] = @ Creato , [ area] = @ area dove [ Paese] = @ Country " >     < Nome parametro : Nome parametro = " Paese " Type = " Int32 " />   DeleteParameters >     < asp: asp ; = " Popolazione " Tipo = " stringa " />     < asp: Nome parametro = " creato "Tipo = " Data e ora " />     < asp: Nome parametro = " Paese " Type = " Int32 " />   UpdateParameters >     < asp: Nome parametro = " Popolazione " Tipo = " stringa " />           < /asp: SqlDataSource >   fare clic su " File ", "Salva" per fare una colonna in un GridView in oggetti geografica nell'elenco a discesa. 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 4 
 
              
Programmazione © www.354353.com