<asp:DropDownList ID="TDdl" Runat="server" Width="100%" BackColor="AliceBlue" AutoPostBack="True" DataSource='<%#DataBinder.Eval(Container.DataItem,"Col2","{0:yyyy-MM-dd}")%>'>
TDdl.DataTextField ="Col2" 
TDdl.DataTextFormatString = "{0:yyyy-MM-dd}"

解决方案 »

  1.   

    <asp:DropDownList ID="TDdl" Runat="server" Width="100%" BackColor="AliceBlue" AutoPostBack="True" DataSource='<%#DataBinder.Eval(Container.DataItem,"Col2","{0:yyyy-MM-dd}")%>'>
    这样不行
      

  2.   

    表格中嵌套dropdownlist不是这样写滴
    .aspx中应该写成
    <ItemTemplate>
    <asp:DropDownList ID="TDdl" Runat="server" Width="100%" BackColor="AliceBlue" AutoPostBack="True" >
    </asp:DropDownList>
    </ItemTemplate>
    然在对应的.vb的datagrid的databind事件中对dropdownlist进行绑定http://www.china-spc.com/webspc_front/technews/technews_html/040114070122.shtml