我在 DataGrid EditItemTemplate 中创建了一个 DropDownList。(手动)
<EditItemTemplate>
<asp:DropDownList ID="DropDownList1" runat="server"
DataSourceID="SqlDataSource1" DataTextField="nazwa" DataValueField="nazwa"
SelectedValue='<%# Bind("nazwa") %>'>
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:baza_pismConnectionString1 %>"
SelectCommand="SELECT [nazwa] FROM [podmioty]"></asp:SqlDataSource>
</EditItemTemplate>
如何从后面代码中的下拉列表中获取选定的值?