Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Dim dt As New DataTable dt = CType(Session("JohnTable"), DataTable) ' Find the ID of the person (row) Dim rowIndex As Integer rowIndex = ViewState(CType(Session("JohnTable"), DataTable).Rows.IndexOf(CType(Session("JohnTable"), DataTable).Rows.Find(ID))) 'Delete the row Dim ival As Integer For ival = 0 To dt.Rows.Count - 1 If dt.Rows(ival).Item("ID") = rowIndex Then dt.Rows(ival).Delete() Exit For End If Next dt.AcceptChanges() Me.Repeater1.DataSource = dt Me.Repeater1.DataBind() End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.