[.net]DataGrid中绑定DropDownList

在DataGrid中加入DropDownList:
<asp:TemplateColumn HeaderText="au_lname">
         <itemtemplate>
     <asp:Label runat="server"
       Text='<%# DataBinder.Eval(Container.DataItem, "au_lname") %>'/>
         </itemtemplate>
         <edititemtemplate>
     <asp:DropDownList runat="server"
       DataSource='<%# GetDataTable1() %>'
       DataTextField="au_lname"
       ];
return dt;
     }

相关文章:

猜你喜欢
相关资源
相似解决方案