private void tAGUpdateToolStripMenuItem_Click(object sender, EventArgs e) { var view = afbGridView; if (!view.IsDataRow(view.FocusedRowHandle)) { return; } int afbID = (int)view.GetFocusedRowCellValue(colAFBID); Genel.TblTagMdfyXF frm = new Genel.TblTagMdfyXF(); frm.RefTbl = "AFB"; frm.RefID = afbID; frm.TAGs = view.GetFocusedRowCellValue("TAGS"); if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.afbTableAdapter.Fill(this.accountDataSet.AFB, string.Format("AFBID = {0}", afbID), Program.USR); } }
private void tAGUpdateToolStripMenuItem_Click(object sender, EventArgs e) { var view = afbGridView; if (!view.IsDataRow(view.FocusedRowHandle)) { return; } int afbID = (int)view.GetFocusedRowCellValue("AFBID"); Genel.TblTagMdfyXF frm = new Genel.TblTagMdfyXF(); frm.RefTbl = "AFB"; frm.RefID = afbID; frm.TAGs = view.GetFocusedRowCellValue("TAGS"); if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { view.SetFocusedRowCellValue("TAGS", frm.TAGs); this.afblTableAdapter.ClearBeforeFill = false; this.afblTableAdapter.FillByAFBID(this.accountDataSet.AFBL, afbID, Program.USR); afblTableAdapter.ClearBeforeFill = true; } }