Protected Sub GridView1_RowDeleting1(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GridView1.RowDeleting Dim dt As DataTable = DirectCast(Session("datatable1"), DataTable) dt.Rows.Remove(dt.Rows(e.RowIndex)) Session("datatable1") = dt Me.GridView1.DataSource = DirectCast(Session("datatable1"), DataTable).DefaultView Me.GridView1.DataBind() End Sub
dt.Rows.RemoveAt(e.RowIndex)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)