Пример #1
0
        protected void EmployeesGrid_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
        {
            ASPxGridView grid     = (ASPxGridView)sender;
            int          rowindex = EmployeesGrid.FindVisibleIndexByKeyValue(e.Keys[EmployeesGrid.KeyFieldName]);
            string       id       = grid.GetRowValues(rowindex, "ID").ToString();

            db.D_Duyurular(Convert.ToInt32(id));
            e.Cancel = true;
            grid.CancelEdit();
            BindGrid();
        }