private void Grid_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex != -1 && e.ColumnIndex != 4) { int bid = Convert.ToInt32(Grid.Rows[e.RowIndex].Cells[0].Value); Form_Block_sProjects fpBlockSProjects=new Form_Block_sProjects(db.Blocks.SingleOrDefault(p=>p.BlockID==bid)); fpBlockSProjects.ShowDialog(); Getdata(); ShowDatainGrid(); } }
private void Btn_DeclareBlock_Click(object sender, EventArgs e) { Form_Block_sProjects B = new Form_Block_sProjects(project_ID); B.ShowDialog(); }