Try
If e.Row.RowType = DataControlRowType.DataRow Then
Dim P As Label = e.Row.Cells(3).FindControl("lbType")
If P.Text = "N" Then
e.Row.Cells(3).Text = "Staff"
Else
e.Row.Cells(3).Text = "Rental"
End If
Catch ex As Exception
Alert.ShowMessage(ex.ToString)
End Try