How are you loading the data in your gridview? dataset, datatable, etc. Whatever object you are using as the datasource for your gridview needs to be updated with the deletion. Then just bind that object to your gridview again and the gridview should be updated.
I m using this code in C#.net, for dynamic creation of GridView without using DB.
<CODE>
AddDataToTable(TextBox1.Text.Trim(), TextBox2.Text.Trim(),Label2.Text, (DataTable)Session["myDatatable"]);
GridView1.DataSource = ((DataTable)Session["myDatatable"]).DefaultView;
GridView1.DataBind();
}
}
</CODE>
tell me Delete Command in gridview using this know of code. i need the code for insert value in to DB through Gridview
Thanks in Advance
With Regards
Tina