private void ToolStripMenuItemPhotoUpdate_Click(object sender, EventArgs e) { string id = this.dataGridViewX1.CurrentRow.Cells[0].Value.ToString(); common.photoid = id; common.photomode = "update"; PhotoDetails md = new PhotoDetails(); if (md.ShowDialog() == DialogResult.OK) { common.photoid = ""; BindData(); } else { common.photoid = ""; BindData(); } }
private void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { string id = this.dataGridViewX1.CurrentRow.Cells[0].Value.ToString(); common.photoid = id; PhotoDetails pd = new PhotoDetails(); if (pd.ShowDialog() == DialogResult.OK) { common.photoid = ""; BindData(); } else { common.photoid = ""; BindData(); } }