title: Remove / delete row from listview under control inside each row
body: <p>I have listview under there are some data and in same table I have Button to delete particular row. I want to know how to remove row on which click of it's button. see below how it looks like.</p>
  
  <p><a href="https://i.stack.imgur.com/rinQM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rinQM.jpg" alt="enter image description here"></a></p>
  
  <p>VB Code</p>
  
  <pre><code> Try
      query = "SELECT * FROM education where userID = '" + userID.Text + "'"
      Dim cmd As New MySqlCommand(query, con)
      cmd.CommandTimeout = 120
      Dim da As New MySqlDataAdapter(cmd)
      Dim table As New DataTable
      da.Fill(table)
      ViewState("Data") = table
      education.DataSource = table
      education.DataBind()
      'countItems.Text = String.Format(table.Rows(0)("dataCount"))
  Catch ex As Exception
      Response.Write(ex)
  End Try
  </code></pre>
  
  <p>Page code</p>
  
  <pre><code>&lt;asp:ListView ID="education" runat="server" DataKeyNames="ID"&gt;
      &lt;ItemTemplate&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td class="titleName"&gt;
                  &lt;asp:Label ID="titleName" runat="server" Text='&lt;%# Eval("degreeName") %&gt;'&gt;&lt;/asp:Label&gt;
              &lt;/td&gt;
              &lt;td class="time"&gt;
                  &lt;asp:Label ID="university" runat="server" Text='&lt;%# Eval("university") %&gt;'&gt;&lt;/asp:Label&gt;,
                  &lt;asp:Label ID="year" runat="server" Text='&lt;%# Eval("year") %&gt;'&gt;&lt;/asp:Label&gt;
              &lt;/td&gt;
              &lt;td class="actions"&gt;
                 &lt;asp:HyperLink ID="HyperLink4" ToolTip="Edit" CssClass="editLink" NavigateUrl='&lt;%# "edit-area.aspx?areaID=" &amp; Eval("ID") %&gt;' runat="server"&gt;&lt;/asp:HyperLink&gt;
                &lt;asp:LinkButton ToolTip="Delete" CssClass="deleteLink" ID="LinkButton4" runat="server"&gt;&lt;/asp:LinkButton&gt;
             &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/ItemTemplate&gt;
  
      &lt;LayoutTemplate&gt;
          &lt;table class="manage-table"&gt;
              &lt;thead class="headerMain"&gt;
                  &lt;tr&gt;
                      &lt;td class="titleName"&gt;Degree&lt;/td&gt;
                      &lt;td class="time"&gt;University&lt;/td&gt;
                      &lt;td class="actions"&gt;Actions&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;ul id="itemPlaceholderContainer" runat="server" style=""&gt;
                  &lt;li runat="server" id="itemPlaceholder" /&gt;
              &lt;/ul&gt;
          &lt;/table&gt;
      &lt;/LayoutTemplate&gt;
  &lt;/asp:ListView&gt;
  </code></pre>
  
  <p>How do I find delete button control in code behind as the button is under listview. </p>