Esempio n. 1
0
 protected void list_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     if (e.RowIndex > -1)
     {
         if (this.list.DataKeys.Count > e.RowIndex)
         {
             string dataId = this.list.DataKeys[e.RowIndex]["Id"].ToString();
             _bus.Delete("Id=" + dataId);
         }
         BindData(this.NPager1.CurrentPage);
     }
 }