[.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;
     }

相关文章:

  • 2022-03-03
  • 2021-12-24
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-23
  • 2021-09-18
  • 2022-12-23
  • 2021-06-18
  • 2021-11-30
  • 2022-12-23
相关资源
相似解决方案