You can use
FindControl
in GridView RowCommand event.
Use the following code in
GridView RowCommand
event.
Dim lbtn As System.Web.UI.WebControls.LinkButton = TryCast(e.CommandSource, System.Web.UI.WebControls.LinkButton)
If lbtn IsNot Nothing Then
Dim row As GridViewRow = TryCast(lbtn.NamingContainer, GridViewRow)
If row IsNot Nothing Then
Dim cmbFrm As DropDownList = TryCast(row.FindControl("cmbFrm"), DropDownList)
string fromperiod =cmbFrm.SelectedItem.Value
End If
End If