private void tblbetalingsidentifikationDataGridView_MouseDown(object sender, MouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Right) { DataGridView.HitTestInfo hit = tblbetalingsidentifikationDataGridView.HitTest(e.X, e.Y); int hitcol = hit.ColumnIndex; if (hit.Type == DataGridViewHitTestType.Cell && hit.ColumnIndex == 1) { tblbetalingsidentifikationDataGridView.ClearSelection(); tblbetalingsidentifikationDataGridView.Rows[hit.RowIndex].Cells[hit.ColumnIndex].Selected = true; Point startPoint = tblbetalingsidentifikationDataGridView.PointToScreen(new Point(e.X, e.Y)); FrmMedlemList m_frmKontoplanList = new FrmMedlemList(startPoint, KontoType.Drift | KontoType.Status | KontoType.Debitor | KontoType.Kreditor); m_frmKontoplanList.ShowDialog(); int? selectedNr = m_frmKontoplanList.SelectedNr; string selectedNavn = m_frmKontoplanList.SelectedNavn; m_frmKontoplanList.Close(); if (selectedNr != null) { tblbetalingsidentifikation recWkladder = ((DataGridView)sender).Rows[hit.RowIndex].DataBoundItem as tblbetalingsidentifikation; if (recWkladder != null) { recWkladder.Nr = selectedNr; recWkladder.Navn = selectedNavn; } } } } }
partial void Deletetblbetalingsidentifikation(tblbetalingsidentifikation instance);
partial void Inserttblbetalingsidentifikation(tblbetalingsidentifikation instance);