Question: How to check if this control is linkButton?

CType(e.Row.Cells(0).Controls(0), LinkButton)

This is inside grid view row data bound.

Answer: 
```
 If e.Row.Cells(0).Controls(0).GetType().ToString = "System.Web.UI.WebControls.DataControlLinkButton" Then
   Dim lbEdit As LinkButton = CType(e.Row.Cells(0).Controls(0), LinkButton)
   lbEdit.Visible = False
End If

```
```
if((e.Row.Cells(0).Controls(0)) is LinkButton)
{ 
   ((LinkButton)e.Row.Cells(0).Controls(0)).visible = false;
}

```