Protected Sub DataGrid1_UpdateCommand(ByVal source As System.Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid1.UpdateCommand
Dim myDataGridItem As DataGridItem
Dim ddltype As System.Web.UI.WebControls.DropDownList
For Each myDataGridItem In DataGrid1.Items 'อ่านค่าจากDataGridที่ชื่อ DGStock ที่ละรายการ
Dim SType, SEid As String
SEid = CType(myDataGridItem.FindControl("DDLType"), DropDownList).SelectedItem.Text
Response.Write(SEid)
Exit Sub
Next
End Sub