Hi,
You can refer to the following code to get the SelectedValue of the
DropDownList in the GridView_RowUpdating event.
Protected Sub GridView1_RowUpdating(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles
GridView1.RowUpdating
Dim s As String =
CType(GridView1.Rows(e.RowIndex).FindControl("Drop DownList1"),
DropDownList).SelectedValue.ToString()
Response.Write(s)
End Sub
Hope this helps.
Regards,
Manish
"S_K" wrote:
I have a GridView that has a DropDownList in one of the columns.
When I edit and update any row I would like to grab the SelectedValue
of that DropDownList when I'm in the GridView_RowUpdating event.
Any ideas?