I have a datagrid with linkbutton column . I was able to retrieve the text of the linkbutton in the column normally but when I converted the linkbutton column as template coloumn I was not able to retieve the text using

strcmd = CType(e.Item.Cells(2).Controls(0), LinkButton).Text

I tried using

lblmsg.Text = e.Item.Cells(2).Text
' Dim strcmd As String = (CStr(CType(e.Item.FindControl("'&veh_vin&'"), LinkButton).Text))


but I am unable to retrieve the text....

how else can I achieve