Hi,
I am running the following code.
Public Sub UpdateRecord(ByVal Sender As Object, _
ByVal E As
DataGridCommandEventArgs)
'Retrieve the field values in the edited row
Dim ID As Int32 =
Convert.ToInt32(E.Item.Cells(0).Text)
Dim DDL As DropDownList =
CType(E.Item.Cells(5).Controls(0), DropDownList)
Dim Decision As String =
Convert.ToString(DDL.SelectedItem.Text)
Dim DDLR As DropDownList =
CType(E.Item.Cells(6).Controls(0), DropDownList)
Dim Reason As String = Convert.ToString(DDLR.Text)
dgInflow.EditItemIndex = -1
UpdateProduct(ID, Decision, Reason)
End Sub
within a DataGrid ...so that whenever the link button
edit is clicked...column number 6 and 7 changes into a
DropDownList in that particular row. Problem is they
are not getting changed to DropDwonList instead they
are changing into a TextBox.
What am I doing wrong?
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
---------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/