Hello Prince,
To read the value from DropDownList you first need to get a handle on the control. Use code similar to one shown below to retrieve a reference to DropDownList. Then you can read the value.
Dim ctrl As Control
Dim row As GridViewRow
Dim ddl as DropDownList
row = grdEditSparePartsMaintenance.Rows[k]
ctrl = row.FindControl("ddlSpareParts")
ddl = TryCast(ctrl, DropDownList)
txtSPMCode.Text = ddl.SelectedValue
Regards,