Exemplo n.º 1
0
 protected void bt_delete_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < this.gv_catelist.Rows.Count; i++)
     {
         CheckBox checkBox = this.gv_catelist.Rows[i].FindControl("checkbox1") as CheckBox;
         if (checkBox.Checked)
         {
             InfoSortInfo.Delete((int)this.gv_catelist.DataKeys[i].Value);
         }
     }
     this.BindData();
 }
Exemplo n.º 2
0
 protected void gv_catelist_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     InfoSortInfo.Delete((int)this.gv_catelist.DataKeys[e.RowIndex].Value);
     this.BindData();
 }