private void toolStripMenuItem1_Click(object sender, EventArgs e) { if (gridView3.FocusedRowHandle < 0) { return; } DataRow dr = gridView3.GetDataRow(gridView3.FocusedRowHandle); frmTedarikciBakiyeDuzeltme DevirBakisiSatisKaydi = new frmTedarikciBakiyeDuzeltme(); DB.pkTedarikciler = int.Parse(dr["pkTedarikciler"].ToString()); DevirBakisiSatisKaydi.ShowDialog(); }
private void bakiyeDevirGirişiToolStripMenuItem_Click(object sender, EventArgs e) { int i = gridView1.FocusedRowHandle; DataRow dr = gridView1.GetDataRow(i); DB.pkTedarikciler = int.Parse(dr["pkTedarikciler"].ToString()); frmTedarikciBakiyeDuzeltme DevirBakisiSatisKaydi = new frmTedarikciBakiyeDuzeltme(); DevirBakisiSatisKaydi.ShowDialog(); gridyukle(""); //gridView3.FocusedRowHandle = i; //gridView3.SelectRow(i); }