private void BTN_KAYDET_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (lbID.Caption != "") { GLOBALTARIFELER.GUNCELLE(lbFILE_NAME.Caption, lbID.Caption, "PROGRAM", ""); } if (lbID.Caption == "") { TARIFELER._TARIFE_KAYDET frm = new TARIFELER._TARIFE_KAYDET(); frm.ShowDialog(); lbFILE_NAME.Caption = frm._TXT_FILE_NAME.ToString(); if (lbFILE_NAME.Caption.ToString() != "") { lbID.Caption = GLOBALTARIFELER.KAYDET(lbFILE_NAME.Caption, "PROGRAM", "", false, "").ToString(); } else { MessageBox.Show("Tarife kodu giriniz.", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information); } } if (dv != null) { // SATIR SİL dv.RowStateFilter = DataViewRowState.Deleted; GLOBALTARIFELER.PROGRAM_ROW_DELETE(dv, lbID.Caption, _GLOBAL_PARAMETRELER._KULLANICI_FIRMA, _GLOBAL_PARAMETRELER._KULLANICI_MAIL); // SATIR EKLE dv.RowStateFilter = DataViewRowState.Added; GLOBALTARIFELER.PROGRAM_ROW_ADD(dv, lbFILE_NAME.Caption.ToString(), lbID.Caption, _GLOBAL_PARAMETRELER._KULLANICI_FIRMA, _GLOBAL_PARAMETRELER._KULLANICI_MAIL); // SATIR GUNCELLE dv.RowStateFilter = DataViewRowState.ModifiedOriginal; GLOBALTARIFELER.PROGRAM_ROW_UPDATE(dv, lbID.Caption, _GLOBAL_PARAMETRELER._KULLANICI_FIRMA, _GLOBAL_PARAMETRELER._KULLANICI_MAIL); DATA_READ(lbFILE_NAME.Caption.ToString()); //dv.RowStateFilter = DataViewRowState.CurrentRows ; //dv.Table.AcceptChanges(); } }