Just a simple question<BR><BR>I was following tutorial on embedding dropdownlist into datagrid but I am stuck. I would really appreciate if anyone could help me thank you.<BR><BR>The problem:<BR><BR>After I click edit menu, I use dropdownlist to change my selection, but unfortunately the value return always the initial value<BR><BR>TempList = E.Item.FindControl("DropDownList1")<BR>tempvalue = TempList.SelectedItem.Value „²---- this value always the initial value no matter how I choose the dropdownlis<BR><BR><BR>Here is my dropdownlist webcode: <BR>DropDownList id=DropDownList1 runat="server" Width="110px" DataValueField="booking_hold_n" DataTextField="booking_name" DataSource="GetBooking()" selectedIndex=&#039;GetSelIndex(Container.DataItem (¡§booking_hold_n¡¨))&#039;<BR><BR>Here is my VB Code:<BR><BR>Dim ddlDataset As New DataSet()<BR> Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox<BR><BR> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<BR> &#039;Put user code to initialize the page here<BR> bindata()<BR> End Sub<BR><BR><BR> Sub bindata()<BR> Dim service As New SMSService()<BR><BR> Dim connection As OleDbConnection = service.DbConnection(Request)<BR><BR> Dim sql As String = "SELECT Applicants.loan_id, booking.booking_name FROM booking, Applicants " & _<BR> "WHERE Applicants.booking_hold_n = booking.booking_hold_n"<BR><BR> Dim command As New OleDbCommand(sql, connection)<BR><BR> connection.Open()<BR> grdBooking.DataSource = command.ExecuteReader(CommandBehavior.CloseConnect ion)<BR> grdBooking.DataBind()<BR> End Sub<BR><BR> Function GetBooking() As DataSet<BR> Dim service As New SMSService()<BR><BR> Dim connection As OleDbConnection = service.DbConnection(Request)<BR> connection.Open()<BR><BR> Dim sql As String = "SELECT * FROM booking"<BR><BR> Dim myadapter As OleDbDataAdapter = New OleDbDataAdapter(sql, connection)<BR><BR> myadapter.Fill(ddlDataset, "bookingList")<BR><BR> Return ddlDataset<BR> End Function<BR><BR> Public Sub DataEdit(ByVal Sender As Object, ByVal E As DataGridCommandEventArgs)<BR> grdBooking.EditItemIndex = E.Item.ItemIndex<BR> &#039;bindgrdApplicants()<BR> bindata()<BR><BR> End Sub<BR><BR> Public Sub dataupdate(ByVal sender As Object, ByVal E As DataGridCommandEventArgs)<BR> Dim TempList As DropDownList<BR> Dim tempvalue As String<BR><BR> TempList = E.Item.FindControl("DropDownList1")<BR> tempvalue = TempList.SelectedItem.Value<BR> TextBox1.Text = tempvalue<BR> End Sub<BR><BR>what is wrong?