没有TextBox的,有List的,可以参考一下
http://www.metabuilders.com/Tools/ListLink.aspx

解决方案 »

  1.   

    是这个意思吗?textbox.text=dropdownlist.selectedvalue
      

  2.   

    private sub dropdownlist_indexchange
      if dropdownlist.selectedvalue="xxx" then
         textbox.text=dropdownlist.selectetext
      end if
    end sub  
      

  3.   

    大家没明白我的意识
    textbox.text和dropdownlist.selectevalue不是一列的啊
      

  4.   

    textbox不可以那么绑定的。理由就是 hychieftain所说的那样。
    你可以用listbox实现同样的功能,里面有个属性可以保证所有的item是展开的。
      

  5.   

    TextBox.Text = YourDataset.Tables[0].Rows[0]["YourColumnName"].ToString();
      

  6.   

    或者你可以把dropdownlist帮定,把autopostback设置为true,然后在选项改变事件中设置textbox的值。
      

  7.   

    你自已重写一个继承TextBox的类就可以啦
      

  8.   

    不是很明白你的意思~贴个我的是绑定了一列,再根据绑定的这列绑定一个DropDownList
    将数据读入ds中:
    Dim i, j As Integer
                Dim drpTemp As DropDownList
                Dim a, b As String
                Dim drs As DataRow()
                For i = 0 To Me.DataGrid1.Items.Count - 1
                    drpTemp = CType(Me.DataGrid1.Items(i).Cells(1).FindControl("drpitem"), DropDownList)
                    drs = ds.Tables(0).Select("F_expertid='" & DataGrid1.Items(i).Cells(0).Text & "'")
                    For j = 0 To drs.Length - 1
                        drpTemp.Items.Add(drs(j).Item("F_ItemName"))
                    Next
                Next
      

  9.   

    用listbox,把listbox的数据源绑定为数据库表中的一列;
    把dropdownlist帮定为数据库表中的一列,把autopostback设置为true,然后在选项改变事件中动态地设置listbox的的绑定的列。