protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { int ipimg = (int)GridView1.DataKeys[e.RowIndex].Value; objcmd = new SqlCommand("DELETE FROM TBL_PDT_IMG WHERE IMG_ID='" + ipimg + "'", con); objcmd.ExecuteNonQuery(); bind(); }
i have error on delete Rows. that Error is <pre lang="sql">Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)